필터 지우기
필터 지우기

How to draw the below type of graph in MATLAB

조회 수: 2 (최근 30일)
Harish Pulluri
Harish Pulluri 2016년 3월 16일
댓글: dpb 2016년 3월 16일

채택된 답변

Stalin Samuel
Stalin Samuel 2016년 3월 16일
  댓글 수: 2
Harish Pulluri
Harish Pulluri 2016년 3월 16일
The above links are giving information about only left side y axis only, not giving both sides

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

추가 답변 (1개)

dpb
dpb 2016년 3월 16일
Simplest approximation is
doc histfit % use optional specified distribution option for Weibull
add the annotation with text
The specific form would be doable with plotyy with @hist and @plot with the vector of observations and the computed pdf values, respectively.
  댓글 수: 2
Harish Pulluri
Harish Pulluri 2016년 3월 16일
Can you send me the complete command of plotyy because I am using the same command like this plotyy(v,fv,v,samples,'@plot','@hist') but it is showing error
dpb
dpb 2016년 3월 16일
Actually that was a bum steer, sorry -- the form of input for hist doesn't meet the criterion for use with plotyy; namely that the function must have form func(X,Y)
As the other respondent noted, use the examples for two axes as an example and "salt to suit". The basics are to create to axes wherein the second is the same 'position' as the first but with the y axes at the right instead of left as is default. The samples are pretty straightforward; give it a go and show us your efforts if you get stuck...

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

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by