How to plot values from excel sheet

1 visualización (últimos 30 días)
krishnasri
krishnasri el 30 de Mzo. de 2015
Comentada: krishnasri el 30 de Mzo. de 2015
I've 60x3 values in excel sheet. I want to plot all those values. can u tell me how to do so. can i use plot3() function? or how can i do so?

Respuesta aceptada

Ortinomax
Ortinomax el 30 de Mzo. de 2015
First of all, you must to import these values in your workspace in Matlab.
So you have to use the xlsread function (other methods exist but this one is simple):
values= xlsread('myExcel.xslx',1,'A1:C60');
After that, you can plot in 3d with something like :
plot3(values(:,1),values(:,2),values(:,3))
  1 comentario
krishnasri
krishnasri el 30 de Mzo. de 2015
Thank you so much.. It is satisfying my problem..

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by