How to plot a column in Excel using Matlab
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Khairul Afifi
il 26 Nov 2014
Commentato: Image Analyst
il 29 Nov 2014
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 Commenti
Risposta accettata
Image Analyst
il 26 Nov 2014
[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 Commenti
Più risposte (1)
Khairul Afifi
il 29 Nov 2014
1 Commento
Image Analyst
il 29 Nov 2014
You're welcome. Can you then go ahead and mark the Answer officially as "Accepted"? Thanks in advance.
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!