[ Close ]
Username
Password


Forgotten your password?
 
Custom Search
MATLAB Projects
 Projects Q A, Guidance for your projects Projects Forum MATLAB Projects
Message Icon Topic: How to get data of table by matlab Post Reply Post New Topic
Found this useful? Give a +1   Add to Facebook: Add to Facebook
 
Get Free Project Downloads:

Enter your email address:  

Author Message
Krishna_Sridhar
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 7
Quote Krishna_Sridhar Replybullet Topic: How to get data of table by matlab
    Posted: 06-Feb-2018 at 4:21pm
Hi,

I want to get the data of table under the matlab environment. How can I do? What is the syntax?

Thank you!

 
IP IP Logged
LokeshNash
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 4
Quote LokeshNash Replybullet Posted: 06-Feb-2018 at 4:24pm
Hello Krishna,

Here is a way to get the data of table under the matlab environment.
the syntax is "a=model.result.table('tbl1').getReal or b=model.result.table('tbl1').getImag"
here "a" and "b" are the variables of matlab which are defined by yourself.
The value of the table is a complex.


I also found out how to save a table as .txt or .xls files , namely:

model.result.table(minaTbl).save(['C:\...\comsolLivelink\' Tbl '.txt']);
model.result.table(minaTbl).save(['C:\...\comsolLivelink\' Tbl '.xls']);

Hope it helps.

Lokesh

 
IP IP Logged

 
Post Reply Post New Topic

Free Programming Courses in JAVA, .Net and PHP (Register Now!)

Java Free Online Course

.Net Free Online Course

PHP Free Online Course


 
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.
© ProjectsQA.com   |   Privacy policy