About 91,600 results
Open links in new tab
  1. Multidimensional Arrays - MATLAB & Simulink - MathWorks

    In a matrix, the two dimensions are represented by rows and columns. Each element is defined by two subscripts, the row index and the column index. Multidimensional arrays are an extension of 2-D matrices and use additional subscripts for indexing.

  2. Matrices and Arrays - MATLAB & Simulink - MathWorks

    MATLAB is an abbreviation for "matrix laboratory." While other programming languages mostly work with numbers one at a time, MATLAB® is designed to operate primarily on whole matrices and arrays. All MATLAB variables are multidimensional arrays, no matter what type of data. A matrix is a two-dimensional array often used for linear algebra.

  3. Plotting a 2D matrix - MATLAB Answers - MATLAB Central

    Plotting a 2D matrix. Learn more about 3d plots, plot . I need to plot a matrix M which is 300*42 in size. On the X axis I need to plot 1:42.

  4. Assigning a 2D matrix - MATLAB Answers - MATLAB Central

    May 31, 2019 · I have to create a 2D matrix, where the row number is unknown. I will have to find the row number. Say, for i=1:5 for j=1:3 I want to create a 2D matrix with 2 columns, where the entries will be...

  5. how to convert 2D matrix to 1D - MATLAB Answers - MATLAB …

    Dec 13, 2014 · To Convert a 2D Matrix into a 1D Array( i.e a row vector), such that row vector is formed by concatenating consecutive rows of the 2D Matrix, use the following Code :

  6. Efficiently converting a 3d matrix to a 2d matrix - MATLAB Answers ...

    Mar 21, 2011 · I would like to convert a 3d matrix into a 2d matrix. I want the 3rd dimension to be concatenated along dimension 1 in the 2d matrix. In the code below, the variable 'desired' illustrates what I want to achieve, but I want to do it more efficiently than via a for a loop.

  7. Creating, Concatenating, and Expanding Matrices - MATLAB

    The most basic MATLAB® data structure is the matrix. A matrix is a two-dimensional, rectangular array of data elements arranged in rows and columns. The elements can be numbers, logical values (true or false), dates and times, strings, categorical values, or some other MATLAB data type. Even a single number is stored as a matrix.

  8. How to: taking out 2d matrix from 3d matrix - MATLAB Answers

    May 19, 2016 · Hello All, I need help in 3d matrix. I have z as 2x20x30 matrix which I will represnt here as: z(i,m,n) Now I want to take out z1 as (m,n) and z2 as (m,n) matrix from this. Meaning the i f...

  9. How to convert a 3D matrix into 2D matrix? - MATLAB Answers

    May 11, 2016 · Learn more about matlab, matrix MATLAB Hi, I am trying to convert 3000x64x278 into 3000*64 rows and 278 columns. I do know that it can be done something like this: for example A is of 3000x64x278 matrix so I can call its first ...

  10. Reshape array by rearranging existing elements - MATLAB

    When you use [] to automatically calculate a dimension size, the dimensions that you do explicitly specify must divide evenly into the number of elements in the input matrix, numel(A). Beyond the second dimension, the output, B, does not reflect trailing dimensions with a size of 1. For example, reshape(A,3,2,1,1) produces a 3-by-2 matrix.

Refresh