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

📄 joinvars.m

📁 intlab 工具用于快速计算 各各层的倒数等等
💻 M
字号:
function [z,I,J] = joinvars(x,y)
%JOINVARS     joins sets of variables x and y into one set z
%
%   [z,I,J] = joinvars(x,y)
%
%On entry, string or string cell array x is a set of mutually disjoint variables,
%  and string or string cell array y is a set of mutually disjoint variables.
%On return, variables x and y are merged into z such that
%  z(I) corresponds to the set x, and z(J) corresponds to the set y.
%

% written  08/28/00     S.M. Rump
%

  % make sure, variables are stored in cell arrays (covers univariate case)
  if ~iscell(x)
    x = {x};
  end
  if ~iscell(y)
    y = {y};
  end
  
  nx = length(x);
  [z,dummy,IJ] = unique([x y]);
  I = IJ(1:nx);
  J = IJ(nx+1:end);

⌨️ 快捷键说明

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