How to read large data and plot them in matlab
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
Hi. I have a file containing digit numbers with a large number of rows and three columns, generated by C program. When I use the ImportData to import them only half of the first coloumn and most of the second one are imported. The remaining get NaN. How can I import all the data of column 1 and 2 and plot them?
Thank you
8 个评论
KSSV
2019-5-8
It depends on how the file is....does it have any text after certain lines? Why don'y uoi upload your file?
Davoud
2019-5-8
Walter Roberson
2019-5-8
Zip the file attach that
Walter Roberson
2019-5-8
Is it fixed width instead of space or tab delimited?
Davoud
2019-5-8
Davoud
2019-5-8
Walter Roberson
2019-5-8
Importdata cannot handle fixed width fields except when there just happens to be one or more spaces between fields every time.
See https://www.mathworks.com/help/matlab/ref/matlab.io.text.fixedwidthimportoptions.html and readtable instead.
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!