I’have to create these three simple squares in Matlab:

Can anyone give me a hand? I know how to use images by openning them (imread) but I dont know how to create them on matlab from 0.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To create image number 3, you have to remember that an image is just a matrix, and that black and white can be represented by 0 and 1, respectively. So the question becomes: How can you create a 2D array in Matlab that is all zeros except for some specific region?