how to preallocate rows or columns of matrix through iteration?

5 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2020-1-27
locs = zeros(length(X), length(Y)) ;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by