edwardw
Well-Known Member
- Joined
- Jan 9, 2004
- Messages
- 2,126
- Reaction score
- 0
Does anyone here work with Matlab? What I'm trying to do is a load a file and then manipulate that data. So far I'm good in loading the file. I input the file name and it loads it just fine. For example, say I load a file called 'data.dat' into Matlab. Now in my workspace there is a matrix that has the name data I want to manipulate the data in there, but since the file changes all the time I just can't set it constant. Usually my command would look like this T=data,1)
Basically I'm taking the first column and putting it in its own matrix. I can't do that now because sometimes the file might change to zoo.dat or hungryhippo.dat
So, I tried inputing what the matrix would be as a string so then I'd have a variable, say matrix name, mn=hungryhippo
When I tried the same command T=mn,1) it hates me. Anyone have suggestions?
Edward
Basically I'm taking the first column and putting it in its own matrix. I can't do that now because sometimes the file might change to zoo.dat or hungryhippo.dat
So, I tried inputing what the matrix would be as a string so then I'd have a variable, say matrix name, mn=hungryhippo
When I tried the same command T=mn,1) it hates me. Anyone have suggestions?
Edward