About 186,000 results
Open links in new tab
  1. '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 …

  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. Array of Matrices in MATLAB - Stack Overflow

    I am looking for a way to store a large variable number of matrixes in an array in MATLAB. Are there any ways to achieve this? Example: for i: 1:unknown myArray(i) = zeros(500,800); end …

  4. 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 …

  5. How to create single dimensional array in matlab?

    Jan 19, 2016 · 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. arr = zeros(1,10); Then you …

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

    Mar 12, 2010 · zeros(m,n) % Makes a 2D array with m rows and n columns, filled with zero ones(m,n) % Same thing with one reshape(a , m , n) % Turns an array with m*n elements into …

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

    Aug 17, 2011 · In addition, starting in R2017a, you can create a string using double quotes "". Therefore if your MATLAB version is >= R2017a, the following will do: for i = 1:3 Names(i) = …

  8. Create array of variables in Matlab - Stack Overflow

    Apr 25, 2012 · create a multidimensional array in matlab. 0. Matlab storing values in array. 0. How to store values in an ...

  9. How to create an empty array of arrays in matlab?

    May 31, 2012 · MATLAB only has matrices, i.e. (potentially multidimensional) arrays of numerical types (or characters or logical values). To group other structures in one variable, try a cell …

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

    Dec 1, 2012 · You can also use deal to create and fill the structure if you know what data should go in there xx = num2cell(1:100); [a(1:100).x]=deal(xx{:}); a(99).x ans = 99 Or you can use …

Refresh