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

1 vue (au cours des 30 derniers jours)
Chroma Prime
Chroma Prime le 26 Oct 2018
Perform a program that graphs the letter "x inside a box" of size n

Réponses (1)

tesarj13
tesarj13 le 26 Oct 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?

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by