@ folders - what is it?
Afficher commentaires plus anciens
Hi,
I am looking for information about the @ - directories, I've found only: http://www.mathworks.com/help/techdoc/matlab_oop/brfynrp- 1.html#brfynrp-2
So I have question:
Why do you need these folders?
Only for organizing classes?
Or is there any other application?
Réponse acceptée
Plus de réponses (1)
Jan
le 9 Sep 2011
The @-folders can be used to call a specific function depending on the class of the input. E.g. you can create two functions with the same name, but in different @-folders:
D:\MFiles\@double\show.m
D:\MFiles\@cell\show.m
Now show(8) calls @double/show, while show({8}) calls @cell/show. This is equivalent to the usage with objects.
Note, that only 'D:\MFiles' is included in the MATLAB path in this case, and not the @-folders.
Catégories
En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!