MATLAB: How to create subplots of findchangepts function

functionMATLABmatlab functionplotplottingsubplottoolbox

Hello everyone,
I'm trying to plot several findchangepts plots as subplots in a single figure. I found it can't be done unfortunately.
Do you have any idea how to do so? any workaround?
Kindly check the attached .mat file. Here's what I need to plot.
subplot(3,1,1)
findchangepts(B,'MaxNumChanges',5);
subplot(3,1,2)
findchangepts(Bz,'MaxNumChanges',5);
subplot(3,1,3)
findchangepts(Dst,'MaxNumChanges',5);

Best Answer

Take a look at the find change points live task which will generate the code for you for the plot you're looking for. Copy and paste it into subplot (or tiledlayout!)