MergeCell

Version 1.1.0.0 (1,78 ko) par Diederick
Merges contents of multiple cell arrays into one big cell array, with expansion
334 téléchargements
Mise à jour 2 fév. 2012

Afficher la licence

MergeCell takes any number of cell vectors (contain the same datatype) and concatenates their contents into one big cellvector
Any signleton inputs are expanded as needed, these inputs can be 1x1 cells or the contained datatype itself

Example: To add some information about fit to plot legend, we'd wan't to append information about the fit to the line labels:

linelbls = {'line a','line b','line c'};
slope = [.9 1 4.2];
slopetxt= arrayfun(@(x) sprintf('%.3f',x),slope,'UniformOutput',false);

leglbls = MergeCell(linelbls,', slope: ',slopetxt);
% leglbls = MergeCell(linelbls,{', slope: '},slopetxt); would be equivalent

Citation pour cette source

Diederick (2026). MergeCell (https://fr.mathworks.com/matlabcentral/fileexchange/29866-mergecell), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2010b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Data Type Conversion dans Help Center et MATLAB Answers
Remerciements

A inspiré : Yahoo! Finance Data Loader

Version Publié le Notes de version
1.1.0.0

fixed some typos in the example

1.0.0.0