![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668598/image.png)
How to get positive and negative area under the curve separately in simulink ?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Swaraj Shevgan
el 29 de Jun. de 2021
Comentada: Mathieu NOE
el 5 de Jul. de 2021
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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668408/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668408/image.png)
0 comentarios
Respuesta aceptada
Mathieu NOE
el 29 de Jun. de 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);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668598/image.png)
10 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Physical Units en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!