how to plot in matlab from excel data
2 次查看(过去 30 天)
显示 更早的评论
hi all, I have three column in excel I want to plot them by using matlab, how could I plot them in MATLAB ?? please help..
0 个评论
采纳的回答
Image Analyst
2015-6-23
Try this:
allData = xlsread(filename);
column1 = allData(:, 1); % Extract column #1
column2 = allData(:, 2); % Extract column #2
column3 = allData(:, 3); % Extract column #3
plot(column1, 'rd-', 'LineWidth', 2, 'MarkerSize', 8);
hold on;
plot(column2, 'go-', 'LineWidth', 2, 'MarkerSize', 8);
plot(column3, 'b*-', 'LineWidth', 2, 'MarkerSize', 8);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!