早教吧作业答案频道 -->其他-->
matlab [m,n] = size(X) X = rand(2,3,4);then下面两行怎么解释?[m1,m2,m3,m4] = size(X) returns m1 = 2,m2 = 3,m3 = 4,m4 = 1.[m,n] = size(X) returns m = 2,n = 12.
题目详情
matlab [m,n] = size(X)
X = rand(2,3,4);
then
下面两行怎么解释?
[m1,m2,m3,m4] = size(X) returns m1 = 2,m2 = 3,m3 = 4,m4 = 1.
[m,n] = size(X) returns m = 2,n = 12.
X = rand(2,3,4);
then
下面两行怎么解释?
[m1,m2,m3,m4] = size(X) returns m1 = 2,m2 = 3,m3 = 4,m4 = 1.
[m,n] = size(X) returns m = 2,n = 12.
▼优质解答
答案和解析
X = rand(2,3,4); X是4维向量,每个分量是2*3的矩阵
[m1,m2,m3,m4] = size(X) returns m1 = 2,m2 = 3,m3 = 4,m4 = 1.
此时 4>ndims(X)=3,多余的放1
[m,n] = size(X) returns m = 2,n = 12.
此时 2< ndims(X)=3,n=3*4=m2*m3
[m1,m2,m3,m4] = size(X) returns m1 = 2,m2 = 3,m3 = 4,m4 = 1.
此时 4>ndims(X)=3,多余的放1
[m,n] = size(X) returns m = 2,n = 12.
此时 2< ndims(X)=3,n=3*4=m2*m3
看了 matlab [m,n] =...的网友还看了以下:
matlab [m,n] = size(X) X = rand(2,3,4);then下面两行怎么 2020-05-13 …
请高手帮我看段MATLAB的程序,有几个地方不懂意思,最好能帮我每句都写个注释.此程序是huffm 2020-05-13 …
matlab 中[m,n]=size(a)是什么意思 2020-05-16 …
三次样条函数源程序如何复制到matlab中求解?源程序如下:(程序中:X,Y为输入结点,dY为两端 2020-05-16 …
用matlab求最短距离时出现问题,function [D,path,min1,path1]=fl 2020-05-17 …
有关matlab程序的求助.n=size(a,1)表示什么,其中a是一个9行9列的举证. 2020-05-17 …
[m,n]=size(X);有错误? 2020-06-03 …
谁能帮我看下这个程序问题出在哪?function[variancebsbkbnsigma]=tra 2020-06-21 …
matlab 空格循环输出[m n]=size(data1);fid=fopen("F: pduo 2020-06-27 …
英语翻译一:A=imread('图像.bmp');I=double(A);[m,n]=size(I) 2020-11-01 …