About 161,000 results
Open links in new tab
  1. How do I create a regularly-spaced array of values in MATLAB?

    How do I make an array that's defined with a start point, an end point, and a total array size? Something like an array that goes from 1 to 10 that's 20 elements long. For example, the array …

  2. Matrices and Arrays - MATLAB & Simulink - MathWorks

    Aug 7, 2010 · MATLAB is an abbreviation for "matrix laboratory." While other programming languages mostly work with numbers one at a time, MATLAB® is designed to operate …

  3. matlab - Create an array of strings - Stack Overflow

    Is it possibe to create an array of strings in MATLAB within a for loop? For example, for i=1:10 Names(i)='Sample Text'; end I don't seem to be able to do it this way.

  4. 'Array of arrays' in matlab? - Stack Overflow

    May 5, 2010 · (2) If you know the maximum possible number of columns your solutions will have, you can preallocate your array, and write in the results like so (if you don't preallocate, you'll …

  5. How to initialize an array of structs in MATLAB?

    52 How can I preallocate an array of structs in MATLAB? I want to preallocate "a" in this example so that it does not resize several times.

  6. How do you make a 2-d array in Matlab? - Stack Overflow

    Mar 12, 2010 · The last one is useful if you construct a linear array but then want to make a square one out of it. (If you want to count up columns instead of rows, reshape(a,n,m)'.

  7. Multidimensional Arrays - MATLAB & Simulink - MathWorks

    Oct 11, 2012 · Multidimensional Arrays A multidimensional array in MATLAB® is an array with more than two dimensions. In a matrix, the two dimensions are represented by rows and …

  8. Array of Matrices in MATLAB - Stack Overflow

    The problem with using a 3D array is that it requires a contiguous space in memory. Although it can have better performance than cell arrays, the latter allows the allocation of the 2D …

  9. How to create single dimensional array in matlab?

    1 In order to assign a value to an array you need to tell matlab where in the array you want it to go. First, create an array of zeros the right size with

  10. Creating Matrices and Arrays - MATLAB & Simulink - MathWorks

    This example shows basic techniques for creating arrays and matrices using MATLAB. Matrices and arrays are the fundamental representation of information and data in MATLAB. To create …