MATLAB Answers


Using same figure properties (e.g. current axes) onto new ones

I was wondering how am I able with a short script or few lines of code to copy some figure's properties and be able to use them on new ones. There are few similar questions around the Central but they seem either to be outdated or too complicated. Any suggestions would be much appreciated!


Sign in to comment.




1 Answer

Answer by Sulaymon Eshkabilov on 19 Oct 2019
 Accepted Answer

An easy way is to create/generate (MATLAB automatically) a plot building file from your already created plot figure via File --> Generate a code --> after a few seconds you will get a file (untitled.m) that you'll rename and use it by its default axis settings.
Good luck.

  1 Comment

Yes, this seems to work good enough! Thank you!

Sign in to comment.