plot(sample,v1,"ro-","LineWidht",4)
This plot is showing error.plz tell me the reason for error?

4 Kommentare

Star Strider
Star Strider am 11 Mai 2020
Bearbeitet: Star Strider am 11 Mai 2020
That (and the previous example you posted) both run for me without error (R2020a).
What is the error? Please copy all the red text from your Command Window to an edited version of your Question.
What version/release of MATLAB are you using?
HARPREET KAUR
HARPREET KAUR am 11 Mai 2020
2019
HARPREET KAUR
HARPREET KAUR am 11 Mai 2020
Can you please tell me. Why it work whn i right in comment section first and then paste it???why it is not working directly?
Star Strider
Star Strider am 11 Mai 2020
Harpreet Kaur — WHAT IS THE ERROR?
I have no idea what you are doing, or what the error is.
What is the ‘comment section’ ?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Ameer Hamza
Ameer Hamza am 11 Mai 2020
Bearbeitet: Ameer Hamza am 11 Mai 2020

0 Stimmen

Correct spellings are "LineWidth". Change the line to
plot(sample,v1,"ro-","LineWidth",4)
For versions prior to R2016b
plot(sample,v1,'ro-','LineWidth',4)

4 Kommentare

Star Strider
Star Strider am 11 Mai 2020
The previous example had no spelling errors and apparently still threw an error.
HARPREET KAUR
HARPREET KAUR am 11 Mai 2020
Solved.. thankyou
Ameer Hamza
Ameer Hamza am 11 Mai 2020
HARPREET, was it the problem of spellings? If yes, then maybe in your other question, you "incorrectly" wrote the correct spellings xD
HARPREET KAUR
HARPREET KAUR am 11 Mai 2020
No the spelling were correct.. bt when i first write in comment section and then paste into task.then it get solved. I don't no.how?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Mai 2020

Kommentiert:

am 11 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by