I have a matrix P having 100 rows and 2001 columns. can you please help me to make a probability distribution curve of columns and mean line of rows.

1 回表示 (過去 30 日間)
Maddy
Maddy 2021 年 12 月 29 日
回答済み: KSSV 2021 年 12 月 30 日
like the probability distribution curve lies on y axis(VERTICALLY) and mean value line lies on x axis (HORIZONTALLY).
I need code for this as i am very new to MATLAB and learning it.

回答 (1 件)

KSSV
KSSV 2021 年 12 月 30 日
x = rand(100,2001) ; % dummy data fro demo
mx = mean(x) ; % mean of row elements
h = histfit(mx,100,'kernel')
h =
2×1 graphics array: Bar Line

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by