how to preallocate rows or columns of matrix through iteration?

6 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!