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

版本 1.0.0.0 (2.3 KB) 作者: Chaowei Chen
Need to load a same variable from a list of MAT files? This is for you!
313.0 次下载
更新时间 2013/2/20

查看许可证

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.

引用格式

Chaowei Chen (2024). loads one variable from MAT-file(s) into workspace (https://www.mathworks.com/matlabcentral/fileexchange/40432-loads-one-variable-from-mat-file-s-into-workspace), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Workspace Variables and MAT-Files 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0