how to preallocate rows or columns of matrix through iteration?

8 Ansichten (letzte 30 Tage)
hello, good morning everyone. please help me to preallocate the 'locs', thankyou.
clc; clear all;
I = zeros(151,151);
W=64;
%locs=zeros(151,1);
for
x = ;
y = ;
end

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Jan. 2020
locs = zeros(length(X), length(Y)) ;

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by