ws2struct

버전 1.0.0.0 (1.56 KB) 작성자: Maximilien Chaumon
Stores current workspace in a structure array.
다운로드 수: 1.2K
업데이트 날짜: 2007/2/23

라이선스 보기

% [s] = ws2struct(varargin)
%
% Description : This function returns a structure containing variables
% of the current workspace.
% __________________________________
% Inputs :
% re (string optional) : a regular expression matching the variables to
% be returned.
% Outputs :
% s (structure array) : a structure containing all variables of the
% calling workspace. If re input is specified,
% only variables matching re are returned.
% Examples :
% >> allmyvariables = ws2struct
% allmyvariables =
% a: {4x1 cell}
% ans: [1x1 struct]
% pm: [1x48 struct]
% res: [2x24 struct]
% results: {{1x3 cell} {1x3 cell}}
% stims: {[1x1 struct] [1x1 struct]}
% train_results: [1x48 struct]
%
% >> only_starting_with_res = ws2struct('res.*')
% only_starting_with_res =
% res: [2x24 struct]
% results: {{1x3 cell} {1x3 cell}}
%
% _____________________________________
% See also : struct2ws ; regexp
%
% Maximilien Chaumon v1.0 02/2007

인용 양식

Maximilien Chaumon (2024). ws2struct (https://www.mathworks.com/matlabcentral/fileexchange/14067-ws2struct), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
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