Print Page | Close Window

How to get data of table by matlab



Printed From: ProjectsQA
Category: Projects Forum
Forum Name: MATLAB Projects
Forum Discription: Projects and discussion on various areas of Matlab like Computer Vision, Image Processing, Signal Processing, Wireless Communication, Deep Learning, Data Analytics, Robotics, Control Systems
URL: http://projectsqa.com/forum_posts.asp?TID=2487
Printed Date: 21-Feb-2018 at 9:39am


Topic: How to get data of table by matlab
Posted By: Krishna_Sridhar
Subject: How to get data of table by matlab
Date 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!



Replies:
Posted By: LokeshNash
Date 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



Print Page | Close Window