array2legend

版本 1.0.1 (1.6 KB) 作者: Micke Malmström
generates a legend based on the numbers in an array
6.0 次下载
更新时间 2022/5/25

查看许可证

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!
版本 已发布 发行说明
1.0.1

fixed typo in description

1.0.0