MATLAB: How to display the Plot Edit Toolbar on figures by default in MATLAB

defaulteditfigurelabel;plotploteditshowtoolbar

When I create a figure within MATLAB, then select View–> Plot Edit Toolbar, the Plot Edit Toolbar is displayed.
I would like this toolbar to be displayed by default.

Best Answer

There is currently no property within MATLAB that allows this toolbar to be displayed by default.
To work around this issue follow the steps listed below:
1. Create the following function within any directory on the MATLAB path:
function defaultplotedittoolbar
plotedit({'plotedittoolbar',gcf,'toggle'})
2. Add the following line to your startup.m file (If startup.m does not exist, create it and place it in any directory on the MATLAB path).
set(0,'defaultfigurecreatefcn','defaultplotedittoolbar')
Now, the Plot Edit Toolbar will be displayed in a figure by default.