write.m

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

M
25 行
字号
function resp = write(st,varargin)
% WRITE Store a value to the location pointed to by a STRUCTURE object.
% 
% 	WRITE(st,val,member) - writes the value VAL to the STRUCTURE member specified by MEMBER.
%     
% 	WRITE(st,val,member,varargin) - writes the value VAL to the STRUCTURE member specified 
% 	by member, where VARARGIN are extra WRITE options. See WRITE options of MEMBER.
% 
% 	WRITE(st,index,val,member) - writes the value VAL to the STRUCTURE member of the STRUCTURE 
%     element INDEX.
%     
% 	WRITE(st,index,val,member,varargin) - writes the value VAL to the STRUCTURE member of the STRUCTURE 
%     element INDEX, where VARARGIN are extra WRITE options. See WRITE options of MEMBER.
% 
%   Copyright 2002 The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 2002/04/23 20:50:08 $

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


% [EOF] read.m
 

⌨️ 快捷键说明

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