Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

making picture through imshow

2 visualizaciones (últimos 30 días)
relamanma
relamanma el 20 de Sept. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I want to make size 256x256 picture
A = ones(16);
num = 1;
for i = 1:floor(length(A)/2)
num = 1-num;
A(1+i:end-i, 1+i:end-i) = num;
end
it doesn't work how I want to make
it there any different way?
  3 comentarios
KSSV
KSSV el 20 de Sept. de 2020
You want to make picture as attached?
relamanma
relamanma el 20 de Sept. de 2020
If you have time to hel...p !!

Respuestas (1)

Walter Roberson
Walter Roberson el 20 de Sept. de 2020
Z = logical(256,256);
Z([1:16,end-15:end], :) = true;
Z(:, [1:16,end-15:end]) = true;
You should be able to continue from there.
  1 comentario
relamanma
relamanma el 20 de Sept. de 2020
thank you~

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by