Good day
I am using MATLAB R2017b. I created a workspace ('Coordinates') that holds x,y and z coordinates from 5 points (5 x 3 double).
I want to extract the coordinates from the workspace and plot on a 2D graph. I.e. I want to plot a graph with the x-z coordinates, and then one with the y-z coordinates.
Is there a way to do this?
Thanks

댓글 수: 4

Rik
Rik 2021년 4월 7일
Probably, but you are using non-standard terminology so it is a bit hard to help you effectively. What do you mean by workspace? It sounds like you have an 5x3 matrix.
What did you try so far? You have probably found the plot function by now.
Rik
Rik 2021년 4월 7일
Why don't you fix your question, instead of wanting it deleted?
Stephen23
Stephen23 2021년 4월 28일
편집: Stephen23 2021년 4월 28일
Original question by Marnu Meyer on 7th April 2021, retrieved from Google Cache:
Loading coordinates from workspace
Good day
I am using MATLAB R2017b. I created a workspace ('Coordinates') that holds x,y and z coordinates from 5 points (5 x 3 double).
I want to extract the coordinates from the workspace and plot on a 2D graph. I.e. I want to plot a graph with the x-z coordinates, and then one with the y-z coordinates.
Is there a way to do this?
Thanks
Rena Berman
Rena Berman 2021년 5월 6일

(Answers Dev) Restored edit

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

답변 (1개)

KSSV
KSSV 2021년 4월 7일

0 개 추천

x = rand(5,1) ;
y = rand(5,1) ;
z = rand(5,1) ;
figure(1)
plot3(x,y,z) ;
figure(2)
scatter(x,y,[],z)

카테고리

도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2021년 4월 7일

댓글:

2021년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by