How to create subplots of findchangepts function?

5 ビュー (過去 30 日間)
Mohamed Nedal
Mohamed Nedal 2019 年 12 月 24 日
編集済み: Armin Iravani 2022 年 1 月 11 日
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);

採用された回答

Sean de Wolski
Sean de Wolski 2019 年 12 月 24 日
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!)
  6 件のコメント
Sean de Wolski
Sean de Wolski 2019 年 12 月 31 日
Tiledlayout was added in 19b. The same logic would work with subplot.
Mohamed Nedal
Mohamed Nedal 2019 年 12 月 31 日
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!

サインインしてコメントする。

その他の回答 (1 件)

Armin Iravani
Armin Iravani 2022 年 1 月 11 日
編集済み: Armin Iravani 2022 年 1 月 11 日
Hello,
the ischange function does not have two types of methods which findchangepts has such as 'rms' and 'std'. How to use subplot and findchangepts with these two methods?
thank you....

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by