Effacer les filtres
Effacer les filtres

Export axes error using app designer

10 vues (au cours des 30 derniers jours)
Jonathan Moorman
Jonathan Moorman le 9 Juil 2021
Réponse apportée : LO le 9 Juil 2021
Hi all,
I am trying to export many axes using a loop, but I recieve the following error for the coding below: "First parameter must specify the axes or chart object". What am i doing incorrect? Thanks!
for i = 1:10
for ii = 1:5
CurrentAxes = append('app.UIAxes',(append(num2str(i),'_',num2str(ii))));

Réponses (1)

LO le 9 Juil 2021
have you tried using for each iteration
you would have to change the file name each time by adding a string with i and ii in the figure name.
filename = ['figure_',num2str(i),'_',num2str(ii),'.jpg'];
Would this work ?


En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by