MATLAB: What is a Double Array array Concept question: What is a 20x10x3 double array? Thanks, Amanda Best Answer a=[1 2;3 4]; is 2x2 double array % double is a classa = 1 2 3 4if you have 3 matrix a=[1 2;3 4], b=[3 5;6 7]; c=[7 8;9 8] % for example% you can put them in one array 2x2x3 x(:,:,1)=a; x(:,:,2)=b; x(:,:,3)=c;%and the result will bex(:,:,1) = 1 2 3 4x(:,:,2) = 3 5 6 7x(:,:,3) = 7 8 9 8 Related SolutionsMATLAB: How to divide a matrix by certain numbers Try this:A = [4 2 3 8;7 9 1 5;6 4 8 3];B = [4;8;2];format ratQ = bsxfun(@rdivide, A, B)Q = 1 1/2 3/4 2 7/8 9/8 1/8 5/8 3 2 4 3/2 MATLAB: Counting n subsequent element of an array b = conv(a,[1 1 1],'valid') Related QuestionHow to get subset indicesSelect all eelements equal to a numberRelational operator == doesn’t work properly in some cases!Find missing element between two matrixIs double precision standard in matlab? How to calculate in that precision.Do inconsistencies exist with floating-point numbers rounding in sprintf, fprintf, sin etc
Best Answer