Plot cummulative values without creating a cumulative vector with the values
이전 댓글 표시
I have a set of variables which represent the power output of several generators. I'm trying to obtain a plot in which the values are stacked on top of each other as seen in the following image, whitout the neccesity of creating another variable in which I make the cummulative sum.

Any idea which plot variation can achieve something similar to this?
답변 (2개)
Star Strider
2022년 4월 5일
1 개 추천
I am not certain what you are asking.
댓글 수: 2
Rafael Inarejo
2022년 4월 5일
Star Strider
2022년 4월 5일
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Jan
2022년 4월 5일
0 개 추천
This cannot work. To get the y value of the line, you do have to perform a cumulative sum. There is no chance to avoid this calculation and I do not see a reason, why to avoid this.
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!