Help with creating artificial image

Hello.
I want to create an artificial "slanted" image and currently use excel to enter a series of 0's and 1's.
the example in the image is what I want to try and achieve in Matlab however, I want the following parameters:
w = 60
step = 10
H = 300

 Respuesta aceptada

Guillaume
Guillaume el 27 de Mzo. de 2018
imresize(triu(ones(30, 60)), [300, 60], 'nearest')
is probably the simplest

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Mzo. de 2018

Comentada:

el 27 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by