i have to prepare gui using guide in which i have 200 rows and 5 columns in csv file.first column is x-axis data and rest of 4 columns are y-axis data.how to plot these 4 columns data w.r.t x-axis and all plots should
2 次查看(过去 30 天)
显示 更早的评论
i have to prepare gui using guide in which i have 200 rows and 5 columns in csv file.first column is x-axis data and rest of 4 columns are y-axis data.how to plot these 4 columns data w.r.t x-axis and all plots should be in same figure.i have imported csv data into gui using csvread , but how to proceed am not understanding.i am very new to matlab.please guide me.
0 个评论
回答(1 个)
Walter Roberson
2012-12-11
YourData = csvread('YourFile.csv');
X = YourData(:,1);
Y = YourData(:,2:5);
plot(X, Y);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!