How to plot a column in Excel using Matlab
21 ビュー (過去 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!