Plot Line Style Error Message

62 views (last 30 days)
alpedhuez
alpedhuez on 27 Apr 2020
Commented: alpedhuez on 27 Apr 2020
I tried
plot(x,y,'--','blue')
with valid data x and y (that I can plot without these options) and got an error message of "invalid data argument." Please advise.

Accepted Answer

Adam Danz
Adam Danz on 27 Apr 2020
Edited: Adam Danz on 27 Apr 2020
Option 1
plot(x,y,'b--')
option 2
plot(x,y,'--','color','blue') % or 'b', or [0 0 1]

More Answers (0)

Categories

Find more on Graphics Objects in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!