MATLAB Answers

Jason
0

Help with creating artificial image

Asked by Jason
on 27 Mar 2018
Latest activity Commented on by Jason
on 27 Mar 2018
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

  0 Comments

Sign in to comment.

1 Answer

Answer by Guillaume
on 27 Mar 2018
 Accepted Answer

imresize(triu(ones(30, 60)), [300, 60], 'nearest')
is probably the simplest

  1 Comment

Jason
on 27 Mar 2018
Thankyou

Sign in to comment.