Color plotting of a plot

12 visualizzazioni (ultimi 30 giorni)
Luffy
Luffy il 3 Lug 2012
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

Risposta accettata

Walter Roberson
Walter Roberson il 3 Lug 2012
a = 'red';
plot(sind(1:360),a);

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by