read.m

来自「这是一个关于MATLAB的函数」· M 代码 · 共 26 行

M
26 行
字号
function resp = read(st,varargin)
% READ Read values stored in the location pointed to the STRUCTURE object ST.
% 
% 	O = READ(st) - reads the numeric values of each STRUCTURE member in ST. This returns a Matlab
%     structure having the member names as fields.
%     
% 	O = READ(st,val,member) - reads the numeric value of the STRUCTURE member specified by MEMBER.
%     
% 	O = READ(st,val,member,varargin) - reads the numeric value of the STRUCTURE member specified by MEMBER,
% 	where VARARGIN are extra READ options. See READ options of MEMBER.
% 
% 	O = READ(st,index,val,member) - reads the numeric value of the member of the STRUCTURE element INDEX.
%     
% 	O = READ(st,index,val,member,varargin) - reads the numeric value of the member of the STRUCTURE 
%     element INDEX, where VARARGIN are extra READ options. See READ options of MEMBER.
% 
%   Copyright 2002 The MathWorks, Inc.
%   $Revision: 1.5 $ $Date: 2002/03/29 22:50:10 $

if ~ishandle(st),
    error('First Parameter must be a STRUCTURE Handle.');
end
resp = read_structure(st,varargin);

% [EOF] read.m
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?