array2legend
バージョン 1.0.1 (1.6 KB) 作成者:
Micke Malmström
generates a legend based on the numbers in an array
ARRAY2LEGEND(Data,PreStr) generates a legend based on the numbers in the specified variable Data
legendHandle = array2legend(Data,{Prestr Poststr},pattern)
with a defined Pre-string and optionally a Post-string and or string-pattern. The basic code that is run at the end is:
legend(num2str(Data(:),[str{1} pattern str{2}]))
Alternative use:
matrix2legend(Data,Prestr)
% or
matrix2legend(Data,Prestr, Poststr)
引用
Micke Malmström (2024). array2legend (https://www.mathworks.com/matlabcentral/fileexchange/112165-array2legend), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2022a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxタグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!