how may i change the marker color

plot(frequency(41),value(:,1), LineStyle, 'r')
I am trying to change the color if this plot but I am getting an error.

4 Comments

Dyuman Joshi
Dyuman Joshi on 24 Aug 2022
Edited: Dyuman Joshi on 25 Aug 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?
thats just something i was following as an example, and yes i need to plot that ust as it is
Is the error you get, "Undefined function or variable 'LineStyle'."?
no the error is not do to the Linestyle i revomed that ans it was do to the 'r'

Sign in to comment.

Answers (1)

Cris LaPierre
Cris LaPierre on 24 Aug 2022

2 Comments

i tried most of the examples that this page show and is not working.
Hard to help without seeing the code you have written. Could you share?
What did not work about this example?
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*')

Sign in to comment.

Categories

Tags

Asked:

on 24 Aug 2022

Commented:

on 29 Aug 2022

Community Treasure Hunt

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

Start Hunting!