not able to call function,show plot error may be

Respected all,
I am a student and I am trying to make a program in matlab.
I have a book and I have copied program from that book but I am getting error.
Please help me as I am new to this and I need this for my study.
I will try to attach the files here.
Thanks in Advance.

댓글 수: 3

Please make it simple, so that people are interest to try on it. Try with one by one function file?
Any Issues?
Thank you for your response sir, I have just copied everything from a book and I have also attached the pdf of book.I cannot split the program or else everything will go wrong.(I am not used to matlab)
dpb
dpb 2019년 8월 11일
Well, it's a little much to expect folks to do your work for you...contacting the source of the program would be the first place to go if it doesn't run as provided.
Altho you could attach the code the way you tried to execute it and the resulting error message--if it's something that you didn't call the function correctly or the like probably somebody can spot it.
If it's a real problem inside the other code, that's a lot more of an issue for volunteers to tackle...

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

답변 (1개)

umang modi
umang modi 2019년 8월 12일

0 개 추천

Well thats a perfect idea!!!
I will attach only 2 scripts here.Now camdesigner.m is the main program and cammotion.m is a scipt that I want to call. and this is the error I get.
Error in CamDesigner (line 32)
cam = CamMotion(cam,showPlot);
Kindly guide.
the pdf is already attached for the ready reference.
thanks

댓글 수: 3

dpb
dpb 2019년 8월 12일
That's not the entire message in context...need everything in red plus the command that started the script.
[MOVED Answer to COMMENT--dpb]
this is the command:
cam = CamMotion(cam,showPlot);
and this is the error:
Undefined function or variable 'showPlot'.
Error in CamDesigner (line 32)
cam = CamMotion(cam,showPlot
as per my attachement u can run the files and see if I am not able to explain sir.
Thanks
Looks like showPlot is a flag variable for user to create...
showPlot=true;
cam = CamMotion(cam,showPlot);

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

질문:

2019년 8월 11일

댓글:

dpb
2019년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by