why it does not work ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Voss
el 29 de Oct. de 2023
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?
Respuestas (1)
Walter Roberson
el 29 de Oct. de 2023
- missing end statement
- no assignment to the output variable out
3 comentarios
Ver también
Categorías
Más información sobre Language Fundamentals 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!