How to define 1000*1000 matrix in matlab? Whenever I want to define a matrix 1000*1000, out of memory message was shown. Can anyone please help me?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
%% How I am defining the matrix that I have given below
m=1000; n=1000;
A=zeros(m*n,m*n);
% whenever I want to run the problem OUT OF MEMORY message was shown in command window
1 comentario
Respuestas (1)
Image Analyst
el 2 de Ag. de 2020
Try this to get a 1000-by-1000 matrix
rows = 1000;
columns = 1000;
A = zeros(rows, columns);
0 comentarios
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices 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!