About 76,900 results
Open links in new tab
  1. matlab - Create a 3D matrix - Stack Overflow

    May 8, 2010 · How can I define a 3D matrix in MATLAB? For example a matrix of size (8 x 4 x 20) or add a 3rd dimension to an existing 2D matrix?

  2. 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 could ...

  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. Matlab, matrix containing random numbers within specified range

    Jan 23, 2013 · I am absolutely new to Matlab and am trying to create an m-by-n matrix containing numbers within a specified range (ie. between -1 and 1). Is there an equivalent function to rand(m, n) …

  5. MATLAB - create matrix with submatrices - Stack Overflow

    Feb 26, 2012 · Say I have three different 2x2 submatrices, and I want to create a big 6x6 matrix in Matlab in which the three submatrices appear on the diagonal, and all the other values are 0.

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

    Mar 12, 2010 · How do you make a 2-d array in Matlab? Asked 15 years, 9 months ago Modified 15 years, 9 months ago Viewed 57k times

  7. How do I create a 1 by N matrix, with elements from 1 to N (matlab ...

    Aug 29, 2011 · How do I create a 1 by N matrix, with elements from 1 to N (matlab)? Asked 14 years, 3 months ago Modified 14 years, 3 months ago Viewed 8k times

  8. how to create logical matrix directly in matlab - Stack Overflow

    Apr 19, 2015 · I have so far been using a = logical (zeros (10,10)) to create logical matrix. Is there a way to create it directly?

  9. How do you create a matrix from a text file in MATLAB?

    Jun 19, 2009 · I want to convert it into a matrix. I tried importing data from the text file to an excel file, because that way its easy to create a matrix, but I lost more than half the data.

  10. Array of Matrices in MATLAB - Stack Overflow

    In fact, each matrix can be stored in a different space in memory, which will save you from Out-of-Memory errors if your free memory is fragmented. Here is a sample function to create your matrices …