Size input must be scalar error while using rand
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Cassandra Little
el 30 de En. de 2017
Comentada: Cassandra Little
el 30 de En. de 2017
I'm trying to run the code:
k = 2:5;
A = rand(k, 4);
disp(rref(A));
It keeps giving me the error "size input must be scalar." I don't know what to change... Thank you in advance.
0 comentarios
Respuesta aceptada
Stephen23
el 30 de En. de 2017
The syntax you use does not work because k is a vector. Taking a wild stab in the dark:
for k = 2:5
A = rand(k,4);
... your code
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Octave en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!