loads one variable from MAT-file(s) into workspace

Need to load a same variable from a list of MAT files? This is for you!
313 téléchargements
Mise à jour 20 fév. 2013

Afficher la licence

getvar loads one variable from MAT-file(s) into workspace

[vo,voname,matname]=getvar popups GUI to ask which MAT file(s) to load and load what variable. vo is the content of the loaded variable and whose name can be assigned by user. voname is the original variable name. matname is the MAT file(s) being loaded.

If more than one file is loaded, vo is a cell containing the content of the variable from each file. matname is a cell containing the MAT file list

[...]=getvar(matname) loads one variable from MAT file(s) matname.

[...]=getvar(varnamefilter) asks which MAT file(s) to load and use varnamefilter to prefilter the name of variables that match the specified regular expressions.

[...]=getvar(matname,varnamefilter) loads one variable filtered by varnamefilter from MAT file(s) fnames into vo and voname.

Citation pour cette source

Chaowei Chen (2025). loads one variable from MAT-file(s) into workspace (https://fr.mathworks.com/matlabcentral/fileexchange/40432-loads-one-variable-from-mat-file-s-into-workspace), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2010a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Help Center et MATLAB Answers

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.0.0