2011-03-08 6 views

Respuesta

12

Usted puede hacer este tipo de cosas utilizando funciones como RAND y RANDI. Por ejemplo:

nCols = randi([10 20]); %# A random integer between 10 and 20 
nRows = nCols*50;   %# Number of rows is a multiple of number of columns 
mat = rand(nRows,nCols); %# A matrix of random values between 0 and 1 
Cuestiones relacionadas