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

10 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Mathieu NOE
Mathieu NOE am 29 Jun. 2021
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 Kommentare
Swaraj Shevgan
Swaraj Shevgan am 5 Jul. 2021
Hello,
Thank you very much . This will help me alot in my simulation.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by