Matrix subplot with number on top of bar

3 ビュー (過去 30 日間)
Matlabbey
Matlabbey 2012 年 9 月 8 日
hi all,
i am trying to create a matrix bar plot with the values on top of each bar. i can get it to work for a row or column vector, but not for a matrix. how to do this??
thank you!

回答 (1 件)

Image Analyst
Image Analyst 2012 年 9 月 9 日
In the same way: use the text() function. Get the x and y of each bar, then construct your text with sprintf(), then place it atop your bar. Not hard - give it a try.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by