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

Antworten (1)

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?

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 26 Okt. 2018

Beantwortet:

am 26 Okt. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by