how may i change the marker color
Afficher commentaires plus anciens
plot(frequency(41),value(:,1), LineStyle, 'r')
I am trying to change the color if this plot but I am getting an error.
4 commentaires
Dyuman Joshi
le 24 Août 2022
Modifié(e) : Dyuman Joshi
le 25 Août 2022
How exatly are you trying to change the color?
'r' doesn't match with LineStyle
Also are you plotting a single value against a column vector?
Ihaveaquest
le 24 Août 2022
Voss
le 24 Août 2022
Is the error you get, "Undefined function or variable 'LineStyle'."?
Ihaveaquest
le 29 Août 2022
Réponses (1)
Cris LaPierre
le 24 Août 2022
0 votes
2 commentaires
Ihaveaquest
le 24 Août 2022
Hard to help without seeing the code you have written. Could you share?
x = 0:pi/10:2*pi;
y1 = sin(x);
y2 = sin(x-0.25);
y3 = sin(x-0.5);
figure
plot(x,y1,'g',x,y2,'b--o',x,y3,'c*')
Catégories
En savoir plus sur Line Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
