Perform a program that graphs the letter "x inside a box" of size n

1 visualización (últimos 30 días)
Chroma Prime
Chroma Prime el 26 de Oct. de 2018
Respondida: tesarj13 el 26 de Oct. de 2018
Perform a program that graphs the letter "x inside a box" of size n

Respuestas (1)

tesarj13
tesarj13 el 26 de Oct. de 2018
box_size = 100;
box = zeros(box_size);
v = 1:box_size+1;
box(1:box_size+1:end) =1;
box(box_size:box_size-1:end) =1;
imshow(box)
Is that what you want?

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by