Variable called angle (name conflict)
Mostrar comentarios más antiguos
I got a .mat file containing some data, some of which are single value variables. One of these are called 'angle' which conflicts with the Matlab function of the same name. This doesn't seem to be a problem if I just use it in the command prompt or a non-function m-file. But if i try to use it in a function, i get the following error:
Error in makeImage (line 49)
delta_theta = angle;
I can't change the variable in the .mat-file, since i have around 100 of them, and no it wasn't me who made the cock up :-). Any suggestions?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!