Convert a string cell value to representative datas
古いコメントを表示
test{1,1}=['0,+,ESI,ms1,-,line,1.1-790.4,275,1.1 41,1.2 30,1.6 10,1.7 24']
test{2,1}=['0.0505163,+,ESI,ms1,-,line,1.1-834.0,254,1.1 26,1.2 16,1.3 52,1.4 30,1.5 12']
test{3,1}=['0.103382,+,ESI,ms1,-,line,1.1-895.4,252,1.1 12,1.4 21,1.5 40,1.6 29,1.7 10']
i want to convert to a struct that the value in the first comma respresents one axis(retention time), the second to sixth comma represents the analisys parameters. The ninth comma and on represents the values of the X, Y data. How i can do that Best Regards Rafael
8 件のコメント
Oleg Komarov
2011 年 7 月 11 日
How did you get "test" in the first place?
Rafael Freire
2011 年 7 月 11 日
Oleg Komarov
2011 年 7 月 11 日
Then, it would be much straightforward to import it with textscan and then do the manipulations.
Rafael Freire
2011 年 7 月 11 日
Oleg Komarov
2011 年 7 月 11 日
Post the first 3 lines of your ascii file and tell me which columns you really need.
Rafael Freire
2011 年 7 月 11 日
Oleg Komarov
2011 年 7 月 12 日
Are the fields 2-6 always 1,3,3,1,4 characters?
Also,after line you always have a float followed with by a negative float with no space in between?
Rafael Freire
2011 年 7 月 12 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!