MATLAB Answers

Loading coordinates from workspace

53 ビュー (過去 30 日間)
Marnu Meyer
Marnu Meyer 2021 年 4 月 7 日
コメント済み: Rena Berman 2021 年 5 月 6 日 18:12
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 件のコメント
Rena Berman
Rena Berman 2021 年 5 月 6 日 18:12

(Answers Dev) Restored edit

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2021 年 4 月 7 日
x = rand(5,1) ;
y = rand(5,1) ;
z = rand(5,1) ;
figure(1)
plot3(x,y,z) ;
figure(2)
scatter(x,y,[],z)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by