How can i draw this kind of graph?

조회 수: 1 (최근 30일)
ASIF ALI
ASIF ALI 2023년 5월 22일
답변: Shishir Reddy 2023년 6월 15일
  댓글 수: 4
Steven Lord
Steven Lord 2023년 5월 22일
You don't have gridded data, so to plot just those points I'd use plot3.
If you have the variables you want to plot selected in the Workspace browser you can open the Plots tab on the toolstrip to see some of the available plotting functions that can accept the selected data. If you click on the thumbnail MATLAB will create the selected plot.
Dyuman Joshi
Dyuman Joshi 2023년 5월 22일
As @Steven Lord mentions, you don't have gridded data, thus you won't be able to plot a surface with the given data, just a line.

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

답변 (1개)

Shishir Reddy
Shishir Reddy 2023년 6월 15일
Hi Asif,
As per my understanding, you want to plot 3D graphs in MATLAB.
Similar to plotting 2D graphs, where we use plot(), scatter(), bar(), etc., we use plot3(), scatter3(), bar3(), etc. functions to plot 3D graphs in MATLAB.
Whereas to plot the surface plots which you have mentioned in the question, we use surf() function.
For further reference, please refer these links to know more about ‘plot3’, ‘surf’ functions.
I hope this helps resolving the issue.

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by