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 comentarios

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 el 11 de Ag. de 2019
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 el 11 de Ag. de 2019
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...

Iniciar sesión para comentar.

Respuestas (1)

umang modi
umang modi el 12 de Ag. de 2019
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 comentarios

dpb
dpb el 12 de Ag. de 2019
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);

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 11 de Ag. de 2019

Comentada:

dpb
el 12 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by