vempty.m
来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 31 行
M
31 行
function[varargout]=vempty(varargin)%VEMPTY Initializes multiple variables to empty sets.%% [X1,X2, ... XN]=VEMPTY is equivalent to% % X1=[]; X2=[]; .... XN=[];%% thus initializing all the output variables to empty sets.% __________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information (C)% 2004 J.M. Lilly --- type 'help jlab_license' for details if nargin~=0 if strcmp(varargin{1}, '--t') vempty_test,return endendfor i=1:nargout varargout{i}=[];endfunction[]=vempty_testz=[];[x,y]=vempty;reporttest('VEMPTY', all(x==z&y==z))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?