matlab波形优化算法经常要用到的matlab toolbox工具箱:yalmip

源代码在线查看: end.m

软件大小: 849 K
上传用户: huanghuanl
关键词: matlab toolbox yalmip 波形优化
下载地址: 免注册下载 普通下载 VIP

相关代码

				function index = end(X,position,numindices)
				%END (overloaded)
				
				% Author Johan L鰂berg
				% $Id: end.m,v 1.1 2006/08/10 18:00:20 joloef Exp $
				
				switch numindices
				    case 1
				        % User has written someting like X(end)
				        sizes = X.dim;%[X.n X.m];
				        if min(sizes)>1
				            index = prod(sizes);
				        else
				            index = max(sizes);
				        end
				    case 2
				        sizes = X.dim;%[X.n X.m];
				        index = sizes(position);
				    otherwise
				        error('Indexation dimension cannot exceed 2');
				end
							

相关资源