Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: struct
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Ehsan

Posts: 9
Registered: 12/7/12
struct
Posted: Dec 13, 2012 4:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi everyone,
I am reading several data from a database as a text and I want to import the text, so I have defined a loop but afterward for i=1:9 I have a data cell with 9 array that just one of them is struct instead of all of them, so it means that I can just read one of them.
i have used importdata function.

for i=1:9
dataname{i,1}=sprintf('data%i.text',i);
data{i,1}=importdata(dataname{i,1});

<194x1 cell>
<194x1 cell>
<194x1 cell>
<194x1 cell>
<194x1 cell>
<194x1 cell>
<1x1 struct> <<=======
<194x1 cell>
<194x1 cell>



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.