| | |
matlab help -> variable names
![]() |
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Solved Threads: 0
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
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
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: acquiring data using qbasic
- Next Thread: no graph appear in figure box in matlab
| Thread Tools | Search this Thread |





