I would like to execute some actions on every object of my class, say "Island".
Is there a command in Matlab allowing this? like
for island = Island
% actions to do
I hope I've made myself understood :)
No products are associated with this question.
if you have an array, obj, of Island objects, you would just do things like
Ok, thank you. It seems that there is no other solution :).
Another question, which may appear a bit silly :
If I create an array :
Skye = 1 Corse = 2 All_Islands = [Skye Corse]
Is there a way, only using All_Islands, to find the name of the variables (Skye & Corse) and not only there values (1 % 2)?
Sounds like a beginner's question and seems like the answer is no, but we never know... :)
Play games and win prizes!Learn more