Importing and Plotting Data
2 ビュー (過去 30 日間)
古いコメントを表示
I have pasted 4 columns of data into a .txt file and then:
fileID=fopen('Lab5data.txt');
plot(data(:,1),data(:,2),data(:,3),data(:,4));
trying to plot all 4 on the same plot but im getting:
Undefined variable Data.
Error in Lab5Practice (line 42)
plot(data(:,1),data(:,2),data(:,3),data(:,4));
a few days ago i made a similar plot using the same method and it worked fine but today neither this nor the old one will work. I have not moved any files since then and the file path shows correct. What am i missing here?
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!