?? getfield.m
字號:
function field=getfield(d,name, idx)
% getfield - returns any datastream fields content (datastrm method)
% field = getfield(d,name, idx) returns the content
% of the field <name> in the datastream object <d>
%
% If <name> has more than one elements these can
% be indexed with <idx>, which must be a cell array
% of integers.
%
% Example
% If 'MCRackdatafile.0000' were a file with 2 datastreams
% e.g. 'Spikes 1' and 'Trigger 1', then
%
% d = datastrm('MCRackdatafile.0000');
% SN = getfield(d, 'StreamNames', {1});
%
% will return the first of the stream names only.
ds = struct(d);
if nargin ==3
field = getfield(ds, name, idx);
else
field=getfield(ds, name);
end;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -