Color plotting of a plot

12 ビュー (過去 30 日間)
Luffy
Luffy 2012 年 7 月 3 日
Hi everyone,
I can plot curve with a color of my wish(red) as
plot(sind(1:360),'red');
and this works
If i want to do it through a variable like,
a = char(red);
this does not work,
plot(sind(1:360),'',a,'');
Please help
  1 件のコメント
Luffy
Luffy 2012 年 7 月 3 日
Can anybody help me

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

採用された回答

Walter Roberson
Walter Roberson 2012 年 7 月 3 日
a = 'red';
plot(sind(1:360),a);

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by