Question:

Using matlab. how do you create an array of objects.?

by  |  earlier

0 LIKES UnLike

Using matlab. how do you create an array of objects.?

 Tags:

   Report

1 ANSWERS


  1. You first simple make object and then assign it to array. In case when you are using GUI-object this could be:

    k = figure;

    k(end+1) = figure;

    k(end+1) = image;

    When using classes this could be made the same way. If you want to store more information about your objects, you should consider using structures or cell arrays:

    data.objects = k;

    data.date = clock();

    or

    data = {figure, figure, figure;'first', 'second', 'third'}

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions