필터 지우기
필터 지우기

3D plotting in Matlab

조회 수: 1 (최근 30일)
Zeab
Zeab 2019년 2월 18일
댓글: Star Strider 2019년 2월 19일
Dear All,
I have three variables,each are vector of ,let's say five elements each,I want to plot the the 3D plot of this vector variables.this might be a silly question but i doubt how to generate the 3D plot of the three variables that are independenat set of vectores with equal dimension.
Any help will be appreciated,
Thank you!

채택된 답변

Star Strider
Star Strider 2019년 2월 18일
If you are plotting vectors, use the plot3 (link) function. Other possibilities are scatter3 (linked to in the plot3 page), and stem3 (link).
  댓글 수: 2
Zeab
Zeab 2019년 2월 19일
Dear Star strider;
thank you for your reply,let me clear my question,I have two vectors measured repeatdely,lets say five times,i=[1 2 3 4 5].The measured values is a metric value (Accuracy) ,let's say A1=[98.5 99 99.5 97 98] and the remaining vector is the time taken to measure this metric value ,let's say t=[0.5 0.55 0.6 0.4 0.45].my intention is to plot the 3d plot ,the accuracy,the iteration and the time in a visually appealing way.
Thank you
Star Strider
Star Strider 2019년 2월 19일
I have no idea what you want.
This works:
i=[1 2 3 4 5];
A1=[98.5 99 99.5 97 98];
t=[0.5 0.55 0.6 0.4 0.45];
plot3(i, A1, t)
grid on
Experiment to get the result you want.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by