Variable called angle (name conflict)
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!