How to extract x and y data from fitted curve of a histogram?
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a set of data represented in histogram. I also add a curve fitting onto the histogram of the kind histfit(data,nbins,dist). My goal is to extract the x (horizontal) and y (vertical) values of the fitted curve. I can do that by first saving the picture in .fig format and use 'openfig' command to call it again and use 'get', but I don't want to do that. I want to directly extract the x and y data from one matlab file. How do I do that?
댓글 수: 0
채택된 답변
Chad Greene
2014년 8월 27일
h = histfit(...) returns a vector of handles h, where h(1) is the handle to the histogram and h(2) is the handle to the density curve.
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!