943,969 Members | Top Members by Rank

Ad:
Jun 6th, 2005
0

matlab help -> variable names

Expand Post »
Hi,
New to Matlab, having a slight problem figuring this one out.
I'm reading in a series of matlab structures entitled 'v1', 'v2', etc..., needing to plot some info in these structures.
Not sure about the best way to do it, so far:

for i = 1:100
n1 = join('','v', i );
name{i}= load (char(n1));
end

Now i need to get into a certain column of all of these:
name(1,1).v1.one(:,1,1)
name(1,2).v2.one(:,1,1)
name(1,3).v3.one(:,1,1)
Not sure how to create a loop that will let me put all these columns into one array, instead of having them stuck in this structure....or maybe there's a better way to start from the beginning
Thanks a mil
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eparadis is offline Offline
1 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: acquiring data using qbasic
Next Thread in Legacy and Other Languages Forum Timeline: no graph appear in figure box in matlab





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC