MATLAB Answers

How to create subplots of findchangepts function?

6 views (last 30 days)
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.


Sign in to comment.

Accepted Answer

Sean de Wolski
Sean de Wolski on 24 Dec 2019
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!)


Show 3 older comments
Mohamed Nedal
Mohamed Nedal on 25 Dec 2019
I'm getting this error.
Undefined function 'tiledlayout' for input arguments of type 'double'.
What would be the problem?
I also found no results for tiledlayout. My matlab version is R2017b.
Sean de Wolski
Sean de Wolski on 31 Dec 2019
Tiledlayout was added in 19b. The same logic would work with subplot.
Mohamed Nedal
Mohamed Nedal on 31 Dec 2019
I work on R2017b. I disabled these two lines t = tiledlayout(3,1); nexttile(t) And I wrote this line t = subplot (3,1,ii); Inside the for-loop, and it works :) Thank you!

Sign in to comment.

More Answers (0)

Sign in to answer this question.