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 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 11 日
Please make it simple, so that people are interest to try on it. Try with one by one function file?
Any Issues?
umang modi
umang modi 2019 年 8 月 11 日
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.
dpb
dpb 2019 年 8 月 12 日
[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
dpb
dpb 2019 年 8 月 12 日
Looks like showPlot is a flag variable for user to create...
showPlot=true;
cam = CamMotion(cam,showPlot);

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction 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