Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to read large data and plot them in matlab

조회 수: 1 (최근 30일)
Davoud
Davoud 2019년 5월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Davoud
Davoud 2019년 5월 8일
편집: Davoud 2019년 5월 8일
In fact, Import Data works and opens a file where three upper rows are explanations and the other ones are numbers. In order to plot, I import again the coloumn 1 and 2. They are saved in Workspace as two separeted files (vec1 and vec2) where almost all the numbers can be retrived in command window. But when I use the plot command, the resulted figure is half of the expected one. The values of bigger than 0 of x axis become NaN and are not shown in the figure.
Walter Roberson
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by