필터 지우기
필터 지우기

matrix data to surface

조회 수: 3 (최근 30일)
in-p
in-p 2015년 4월 10일
댓글: in-p 2015년 4월 10일
Hi. Sorry if this is a basic question, but i've searched and i haven't been able to understand it by muself. I have a matrix that results on something like:
5 10 15 20
100 10 20 40 50
200 35 45 65 70
300 50 65 80 90
I want a surface graph with that column (areas) and row (volume), and in excel this is pretty basic but here when i use the surface function i can only submit the inside numbers (the 3x4 matrix). Any help will be greatly appreciated. Thanks, Inês

채택된 답변

Torsten
Torsten 2015년 4월 10일
[X,Y]=meshgrid(5:5:20,100:100:300);
surf(X,Y,[10 20 40 50;35 45 65 70;50 65 80 90]);
Best wishes
Torsten.
  댓글 수: 1
in-p
in-p 2015년 4월 10일
wow, that simple. thank you!

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

추가 답변 (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