Hi Julian Braun,
Yes, you can change the active elements of a figure programmatically using MATLAB code. The following code demonstrates how to change the properties of the X-axis and Y-axis labels, the title, and the legend of a figure:
ax.XLabel.String = 'Time (s)'
ax.YLabel.String = 'Amplitude'
ax.Title.String = 'Sine Wave'
You can alternatively set the active elements by the below code as well
You can also access and modify these properties directly using the gca (get current axes) and gcf (get current figure) functions, which return handles to the current axes and figure, respectively. For example, you can change the font size and font weight of the X-axis label like this:
ax.XLabel.FontWeight = 'bold';
You can similarly modify other properties of the axes, such as the tick labels and tick marks, using the XTick, XTickLabel, YTick, and YTickLabel properties of the axes. For more information on customizing plots in MATLAB, see the documentation on graphics customization:
I hope this helps :)