why it does not work ?
1 次查看(过去 30 天)
显示 更早的评论
function out = block3(row, colomn)
a = zeros(row, colomn);
for i = 1:row
for j = 1:colomn
if ~mod(i,2) && ~mod(j,2)
a(i, j) = 1;
end
end
1 个评论
Voss
2023-10-29
You ask why it does not work. In order to answer that question, we need to know what it should do, but you haven't told us that. What should this function do?
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!