array2legend

generates a legend based on the numbers in an array
6 téléchargements
Mise à jour 25 mai 2022

Afficher la licence

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)

Citation pour cette source

Micke Malmström (2025). array2legend (https://fr.mathworks.com/matlabcentral/fileexchange/112165-array2legend), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2022a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.1

fixed typo in description

1.0.0