Is it possible to assign an object to a struct type?

1 view (last 30 days)
For example, I would like to do something like
h(1) = axes;
so that I could do something like
h(1).YLim = [-5,5];
My workaround is doing
ax(1).h = axes;
ax(1).h.YLim = [-5,5];
Thanks, Denis

Answers (1)

Image Analyst
Image Analyst on 30 Nov 2015
Yes, if you have a modern enough version of MATLAB (>R2014b I think).

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!