struct2ws

Throws selected fields of a scalar structure in the current workspace.
1.2K 次下载
更新时间 2007/2/23

查看许可证

% struct2ws(s,varargin)
%
% Description : This function returns fields of scalar structure s in the
% current workspace
% __________________________________
% Inputs :
% s (scalar structure array) : a structure that you want to throw in
% your current workspace.
% re (string optional) : a regular expression. Only fields
% matching re will be returned
% Outputs :
% No output : variables are thrown directly in the caller workspace.
%
% Examples :
%
% Example 1:
% >> who
%
% Your variables are:
%
% params
%
% >>struct2ws(params)
% >> who
%
% Your variables are:
%
% blanc grille ratio_ecran unitX
% c_map gris rect unitY
% centre magni_jitt taille window
% dim_grille noir taille_cr zoomzoom
% epais_cr params taille_items
%
% Example 2:
% >> struct2ws(params,'unit')
% >> who
%
% Your variables are:
%
% params unitX unitY
%
%
% _____________________________________
% See also : ws2struct ; regexp
%
% Maximilien Chaumon v1.0 02/2007

引用格式

Maximilien Chaumon (2024). struct2ws (https://www.mathworks.com/matlabcentral/fileexchange/14068-struct2ws), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

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