histogram関​数を使う場合、プロッ​トしないでオブジェク​トだけを取得するには​どうすればよいですか​?

5 views (last 30 days)
Shigehiko Katsuragawa
Shigehiko Katsuragawa on 1 Apr 2020
Edited: Kenta on 3 Apr 2020
x = randn(10000,1);
h = histogram(x)
を実行すると、ヒストグラムがプロットされます。
プロットしない(非表示)でオブジェクトhだけを取得するにはどうすればよいですか?

Accepted Answer

Shigehiko Katsuragawa
Shigehiko Katsuragawa on 1 Apr 2020
別の関数があったのですね。有益な回答に感謝します。
  1 Comment
Kenta
Kenta on 1 Apr 2020
Edited: Kenta on 3 Apr 2020
はい、よかったです。ヒストグラムのレンジを変更したりなどいろいろとカスタムできるはずですので試していただけると幸いです。また、何か問題があればご連絡ください。

Sign in to comment.

More Answers (1)

Kenta
Kenta on 1 Apr 2020
こんにちは、histcounts関数を使えば、ヒストグラムの頻度やそのレンジを求めることができます。詳しくは、以下のドキュメントをご覧ください。

Products

Community Treasure Hunt

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

Start Hunting!