How to plot 2 different colour using RBG setting
1 view (last 30 days)
Show older comments
Commented: Matlaber on 3 Jan 2020
plot(x,y,'color',[0,0.5,0], x,y2, 'color',[0.5,0,0])
Error using plot
Vectors must be the same length.
If I am using:
Image Analyst on 3 Jan 2020
Your y2 does not have the same number of elements as x. It has nothing to do with the colour.
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!