| MATLAB Central > MATLAB Newsreader > Importing data from a textfile |
|
|
|
Carrying on froma thread I started a while ago http://www.mathworks.com/matlabcentral/newsreader/view_thread/300663#811546, my problem has now become more complex and I could really use some advice. |
|
"Jane T" wrote in message <ivkvpe$hio$1@newscl01ah.mathworks.com>... |
|
Thanks a lot for your help. Structures is the obvious way to go, can't believe it didn't occur to me, especially as I've just been working on another function that uses them extensively! |
|
The regexp split function returns the chunks as a cell array, who's members can be mixed classes. You can have a cell array with strings, floats, singles, structures, other cells arrays... whatever. |
|
Thanks again. I now have the following code: |
|
"Jane T" wrote in message <ivns6e$suo$1@newscl01ah.mathworks.com>... |
|
Thank you so much for your help Matthew, I'm pretty sure that I now have some really generalised code that gets the data into a format I can use. |
|
"Jane T" wrote in message <j04hn5$nmc$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
