MATLAB 帮助中心
重新排列模型数组中的数组维度
newarray = permute(sysarray,order)
newarray = permute(sysarray,order) 重新排列模型数组的数组维度,使各维度按指定顺序排列。对于此运算,模型数组的输入和输出维度不计为数组维度。
newarray
sysarray
order
示例
全部折叠
创建一个 1×2×3 的状态空间模型数组。
sysarr = rss(2,2,2,1,2,3);
重新排列该模型数组,使其维度变为 3×2×1。
newarr = permute(sysarr,[3 2 1]); size(newarr)
3x2 array of state-space models. Each model has 2 outputs, 2 inputs, and 2 states.
模型数组的输入和输出维度保持不变。
要重新排列的模型数组,指定为输入-输出模型(例如数值型 LTI 模型、广义模型或辨识 LTI 模型)数组。
重新排列后的模型数组的维度,指定为正整数向量。例如,要将一个模型数组重新排列为 3×2 的数组,则 order 为 [3 2]。
[3 2]
数据类型: double
double
重新排列后的模型数组,以具有 order 指定的新维度的输入-输出模型数组形式返回。
在 R2013a 中推出
ndims | size | reshape
ndims
size
reshape
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处