📄 copy_parameters.m
字号:
function structout=copy_parameters(structin,structout)% Function copies all parameters of a log structure, seismic structure, or table % structure to another (parameter in a structure can be identified by an entry % in the 'parameter_info' field (cell array) of the structure); if a parameter % exists already in the output structure it will be overwritten.% Written by: E. R.: October 6, 2005% Last updated:%% structout=copy_parameters(structin,structout)% INPUT% structin structure from which the parameters are to be copied% structout structure to which the parameters are to be copied% OUTPUT% structout structure to which the parameters are to be copiedif ~isstruct(structin) error(' First input data set must be a structure')endif ~isfield(structin,'parameter_info') returnendparams=structin.parameter_info(:,1);for ii=1:length(params) structout=add_parameter(structout,getfield(structin,params{ii}), ... structin.parameter_info(ii,:));end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -