フィルターのクリア

Extracting Histogram data for plot generation

6 ビュー (過去 30 日間)
Day
Day 2024 年 4 月 8 日
編集済み: Fulden Buyukozturk 2024 年 4 月 9 日
Hi,
I generated a sample of lognormal distribution using Simbiology analyzer. I want to extract the data of the samples' histogram to plot the exact histogram using graphPad prism. Could you please tell me how to extract the data of the histogram plot to generate he same graph in prism?
Thanks
  2 件のコメント
Image Analyst
Image Analyst 2024 年 4 月 8 日
What is "graphPad prism"? Is that a third party plug-in for MATLAB, a product of Mathworks, or some separate program?
Day
Day 2024 年 4 月 8 日
A separate program

サインインしてコメントする。

回答 (2 件)

KSSV
KSSV 2024 年 4 月 8 日
h = histogram(rand(100,1))
h =
Histogram with properties: Data: [100x1 double] Values: [18 20 16 18 28] NumBins: 5 BinEdges: [0 0.2000 0.4000 0.6000 0.8000 1] BinWidth: 0.2000 BinLimits: [0 1] Normalization: 'count' FaceColor: 'auto' EdgeColor: [0 0 0] Use GET to show all properties
data = h.Data ;
BinEdges = h.BinEdges ;
Values = h.Values ;
  1 件のコメント
Day
Day 2024 年 4 月 8 日
Thank you. I want to plot to generate the same attached histogram in another program

サインインしてコメントする。


Fulden Buyukozturk
Fulden Buyukozturk 2024 年 4 月 8 日
編集済み: Fulden Buyukozturk 2024 年 4 月 8 日
You can export the samples you generated using Model Analyzer to an Excel file:
  • Find the samples under your program results
  • Drag and drop "samples" to a Datasheet
  • Right click on the Dataseet and select "Export Datasheet"
Please see the screenshot below:
  5 件のコメント
Day
Day 2024 年 4 月 9 日
First, what does the vertical axis represent in the attached figure (Q3)?
How can we know the bin size?
Fulden Buyukozturk
Fulden Buyukozturk 2024 年 4 月 9 日
編集済み: Fulden Buyukozturk 2024 年 4 月 9 日
Since this is a histogram, vertical axis represents the number elements in the bin. You can get information such as bin width, number of bins, bin edges, etc. by checking histogram's properties.
For a histogram created in Model Analyzer, first right click on the histogram and select export plot. This will export as a MATLAB figure. You can then get a handle of the histogram by typing the following in MATLAB Command Window:
fig = gcf;
hist = findobj(fig, 'Type', 'Histogram');
Once you get a handle to histogram, get some of its properties as KSSV showed above:
% get bin width
binWidth = hist.BinWidth
% get bin edges
binEdges = hist.BinEdges
% get number of bins
binEdges = hist.NumBins
Fulden

サインインしてコメントする。

コミュニティ

その他の回答  SimBiology コミュニティ

カテゴリ

Help Center および File ExchangeImport Data についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by