Filter löschen
Filter löschen

can i save plottool configuration?

11 Ansichten (letzte 30 Tage)
Saleh abdallah
Saleh abdallah am 26 Jul. 2015
Kommentiert: Saleh abdallah am 1 Aug. 2015
Can i save the plottools changes I make? for example if I change the color of a plot using plottool, how can i save it in order to have the same change when i run my program again?

Akzeptierte Antwort

Cindy Solomon
Cindy Solomon am 28 Jul. 2015
Hi Saleh,
Once you change all the plot preferences that you would like (ex: color, font, etc), if you navigate to the "File" menu, there is an option to "Generate code". This will generate a function (by default called 'createfigure', although you can change the name to whatever you would like) that saves all your preferences for you so that the next time you are using that plot call, you can call that function instead.
Hope this helps!
  1 Kommentar
Saleh abdallah
Saleh abdallah am 1 Aug. 2015
thank you, then should I define the variabbles for "createfigure" and insert the function call in the my code? this is the only way it is working:
% figure,hold on,grid on,
% plot(time,pos(1))
% plot(time,pos(2))
% plot(time,pos(3))
% legend('Pos\_t X','Pos\_t Y','Pos\_t Z')
createfigure(time, [pos(1) pos(2) pos(3)])
is there another way or this is how it's done

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by