How to plot a column in Excel using Matlab
조회 수: 12 (최근 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146218/image.png)
댓글 수: 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에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!