this is my code
.....................................................................................................................................
close all;
X=inputX(:,2);
Y=inputY(:,2);
tcmxt=Z1(:,2);
YM=Vm1(:,2);
YS=VS1(:,2);
figure(1);
plot(inputX,inputY,'r',tcmxt,YM,'b',tcmxt,YS,'g');
xlabel('x-axis position(um)');ylabel('y-axis position(um)');
legend('Reference heart contour','X-YM Reference heart contour','X-YS Reference heart contour');
when I plot the data on the screen.The color is different on it. how to change the color on it?

 採用された回答

VBBV
VBBV 2021 年 1 月 19 日
編集済み: VBBV 2021 年 1 月 19 日

0 投票

plot(inputX(:,2),inputY(:,2),'r',tcmxt,YM,'b',tcmxt,YS,'g');
inputX and inputY has multiple columns
try the above

1 件のコメント

KAO CHUN YU
KAO CHUN YU 2021 年 1 月 20 日
GOT IT!!!
THANKS FOR YOUR HELP!

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

その他の回答 (0 件)

カテゴリ

製品

タグ

質問済み:

2021 年 1 月 19 日

コメント済み:

2021 年 1 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by