필터 지우기
필터 지우기

How to use different BaseValues in a single plot

조회 수: 8 (최근 30일)
Michael Behm
Michael Behm 2017년 2월 17일
댓글: zou chang 2020년 12월 22일
I'm using R2016b. I have exactly the same problem with the area function as described here (it is not possible to use different base values for several area() objects within one plot; the base values of all area() objects are set to the most recent base value):
I can only think that this is a bug. Can Mathworks comment on this since no solution has been provided so far.
Thank you.
  댓글 수: 2
dpb
dpb 2017년 2월 17일
How would you envision it would work with multiple base values? The various lines are cumulative to each other from a common point by definition.
Can you sketch a plot and attach it that illustrates what you'd like to create?
zou chang
zou chang 2020년 12월 22일
In matlab 2013, different base value in one axies

댓글을 달려면 로그인하십시오.

답변 (1개)

Ullekh Gambhira
Ullekh Gambhira 2018년 6월 16일
I was facing a similar issue, solved it by using "Shade area between two curves" function by John Bockstege. The file exchange link for this function is below:
https://www.mathworks.com/matlabcentral/fileexchange/13188-shade-area-between-two-curves
It does not consider base value, but basically shades the area between two lines. So one line can be your vector and the other can be a baseline*ones(size(x)).
Hope this helps.
Regards, Ullekh

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by