The message you are replying to and its parents are listed in the reverse order with the most recent posts first. This might not be the whole discussion thread. To read all the messages in this thread please click here.
Re: How to read a text to Cell ?
| Scott Burnside | 24 Jul 2008 20:12 |
Zheyu.Gao@googlemail.com wrote in message <cad24a09-3de7- 49e1-9d73-818edf449288@q28g2000prh.googlegroups.com>...
> hi, eveyone, I got a problem transfering a txt file to cell array, the > problem as following [quoted text clipped - 27 lines] > > can anyone give some help please!! help cellstr
|
| Zheyu.Gao@googlemail.com | 24 Jul 2008 18:43 |
hi, eveyone, I got a problem transfering a txt file to cell array, the problem as following ----------------------------------------------- mask.txt ----------------------------------------------- 3x3 4x4 5x5 //mask definitions can vary
1 2 3 4 5 6 7 8 9
1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 ------------------------------------------------------ how do I convert this to a cell which C{1,1}=3x3 C{1,2}=4x4 C{1,3}=5x5
I tried textscan but the format field is fixed, in my situation, format is variable depend on the 1st line of the text file.
can anyone give some help please!!
|