Having problems with functions
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
I've built a function, which I'm giving three values x, y and a. however when I run it I get the following error:
??? Reference to a cleared variable a.
Error in ==> parallel_inverse at 68
a = a * pi/180;
This is my function start:
function parallel_inverse(x, y, a)
Does anyone know why I'm getting this error?
4 Kommentare
Walter Roberson
am 11 Dez. 2012
We need to see the code for your routine.
Ian Phillips
am 11 Dez. 2012
Well, the error message is saying that you cleared the variable "a" somewhere prior to where you try to use it in the line
a = a* pi/180
If you don't want to show your code, then you'll have to go hunting for the clear statement yourself.
Ian Phillips
am 11 Dez. 2012
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!