How to plot a column in Excel using Matlab
22 次查看(过去 30 天)
显示 更早的评论
I would like to plot a column in Excel using MATLAB. There are 9 column which are column A,B,C,D,E,F,G and H and 1441 rows. I would like to plot column F with 1441 rows using Matlab. I also wish to plot column H,F and G simultaneously in a figure. I hope someone can teach me. Thank you.
0 个评论
采纳的回答
Image Analyst
2014-11-26
[numbers, txt, raw] = xlsread(filename);
colf = numbers(:, 6);
colg = numbers(:, 7);
colh = numbers(:, 8);
plot(colf, 'bo-');
hold on;
plot(colg, 'rd-');
plot(colh, 'gd-');
0 个评论
更多回答(1 个)
Khairul Afifi
2014-11-29
1 个评论
Image Analyst
2014-11-29
You're welcome. Can you then go ahead and mark the Answer officially as "Accepted"? Thanks in advance.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!