loadFields from mat files

版本 1.0.0.0 (4.2 KB) 作者: Arthur
Loads a field from a number of mat files.
453.0 次下载
更新时间 2011/2/18

查看许可证

Sometime you need a specific field from a (large) number of mat files. With loadFields, the user can select all the mat files at once, and choose the required field using a pulldown menu. The values are returned as a single array if the field has always the same size, otherwise it returns a cell.

%USAGE:
%data = loadFields returns the values of a structure field
%from one or more files. User is prompted for the required field. If all
%struct fields contain a 1-by-n or n-by-1 matrix of the same size ,
%loadFields will create a single concatated array. In all other occasions,
%loadFields creates a cell with each field containing the field of a
%file.
%
%[data files] = loadFields returns the values of a structure
%field from one or more files, and files used.
%
%[data files fields] = loadFields returns the values of a strucure
%field, the files used, and the selected fields
%
% ... = loadFields(fields) returns the values of the structure fields
% in 'fields'

引用格式

Arthur (2024). loadFields from mat files (https://www.mathworks.com/matlabcentral/fileexchange/30459-loadfields-from-mat-files), MATLAB Central File Exchange. 检索时间: .

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

参考作品: Standalone Pulldown Menus

Community Treasure Hunt

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

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