⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcolon.m

📁 JLAB is a set of Matlab functions I have written or co-written over the past fifteen years for the p
💻 M
字号:
function[varargout]=vcolon(varargin)%VCOLON  Condenses its arguments, like X(:).%%   [Y1,Y2, ... YN]=VCOLON(X1,X2, ... XN) is equivalent to   %		%      Y1=X1(:); Y2=X2(:); ... YN=XN(:);    %%   VCOLON(X1,X2,...XN) with no output arguments overwrites the %   original input variables.%   __________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information%   (C) 2000, 2004 J.M. Lilly --- type 'help jlab_license' for details        if strcmp(varargin{1}, '--t')   vcolon_test,returnend for i=1:nargin  x=varargin{i};  varargout{i}=x(:);endeval(to_overwrite(nargin));function[]=vcolon_testx=[1 3; 2 4];y=x;vcolon(x,y);reporttest('VCOLON ', all(x==[1:4]'&y==[1:4]'))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -