?? printstruct.m
字號:
%function st = printStruct(output)%% prints structure fields, one to a line, to string, 'st'function st = printStruct(output)st='';if ~isempty(output) fn=fieldnames(output); for jj=1:length(fn) tmpNm=fn{jj}; thisField=getfield(output,tmpNm); isTooBig = prod(size(thisField))>5; if ((~isTooBig | ischar(thisField)) & ~isempty(thisField)) if isnumeric(thisField) thisField=num2str(thisField(:)'); end nxt=[tmpNm '=' thisField]; st = [st sprintf('%s\n',nxt)]; end endend
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -