Creating 3D graph

조회 수: 3 (최근 30일)
Patrick Lonergan
Patrick Lonergan 2021년 3월 4일
편집: KALYAN ACHARJYA 2021년 3월 4일
Hi,
Quite new to matlab. I am looking to plot a 3D surface.
I have three inputs;
Beta; 1x71
Lambda; 101x1
and Cp: 101x71
The values of Cp correspond to the values of beta and lambda. I am wondering if anyone has any tips on the best method to do this. I also have the created a table that I could import in excel if that is a useful step.
Thanks

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 3월 4일
편집: KALYAN ACHARJYA 2021년 3월 4일
This way, see the surf plot
Beta=rand(1,71); % Change Data, here random sample data
Lambda=rand(101,1); % Change Data, here random sample data
[x,y]=meshgrid(Beta,Lambda);
Cp=rand(101,71); % Change Data, here random sample data
surf(x,y,Cp);
grid on;

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by