?? isstacked.m
字號:
%ISSTACKED Test on stacked mapping%% N = ISSTACKED(W)% ISSTACKED(W)%% INPUT% W Mapping%% OUTPUT% N Scalar, 1 if W is a stacked mapping, 0 otherwise%% DESCRIPTION% Returns 1 for stacked mappings. If no output is requested, false outputs% are turned into errors. This may be used for assertion.%% SEE ALSO% ISMAPPING, ISPARALLEL% $Id: isstacked.m,v 1.4 2003/08/18 15:51:54 dick Exp $function n = isstacked(w) prtrace(mfilename); if (isa(w,'mapping')) & (strcmp(w.mapping_file,'stacked')) n = 1; else n = 0; end % Generate an error if the input is not a stacked mapping and no output % is requested (assertion). if (nargout == 0) & (n == 0) error([newline '---- Stacked mapping expected -----']) endreturn
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -