How to plot values from excel sheet

조회 수: 4 (최근 30일)
krishnasri
krishnasri 2015년 3월 30일
댓글: krishnasri 2015년 3월 30일
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?

채택된 답변

Ortinomax
Ortinomax 2015년 3월 30일
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
krishnasri
krishnasri 2015년 3월 30일
Thank you so much.. It is satisfying my problem..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by