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

댓글 수: 4

Star Strider
Star Strider 2020년 5월 11일
편집: Star Strider 2020년 5월 11일
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 2020년 5월 11일
2019
HARPREET KAUR
HARPREET KAUR 2020년 5월 11일
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 2020년 5월 11일
Harpreet Kaur — WHAT IS THE ERROR?
I have no idea what you are doing, or what the error is.
What is the ‘comment section’ ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 5월 11일
편집: Ameer Hamza 2020년 5월 11일

0 개 추천

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

Star Strider
Star Strider 2020년 5월 11일
The previous example had no spelling errors and apparently still threw an error.
HARPREET KAUR
HARPREET KAUR 2020년 5월 11일
Solved.. thankyou
Ameer Hamza
Ameer Hamza 2020년 5월 11일
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 2020년 5월 11일
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?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2020년 5월 11일

댓글:

2020년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by