How to get positive and negative area under the curve separately in simulink ?

10 ビュー (過去 30 日間)
I got the following output in simulink. I want seperate the positive and negative area under the curve separately and also want to colour it with diffrent colours.

採用された回答

Mathieu NOE
Mathieu NOE 2021 年 6 月 29 日
hello
see on FEX :
save your simulink data as array to the workspace and use the climanomaly function
exemple :
x = 1:.1:20;
y = sin(x);
ref = 0;
figure
climanomaly(x,y,ref);
  10 件のコメント
Swaraj Shevgan
Swaraj Shevgan 2021 年 7 月 5 日
Hello,
Thank you very much . This will help me alot in my simulation.
Mathieu NOE
Mathieu NOE 2021 年 7 月 5 日
My pleasure

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by