Question: Write a script (.m file) that creates a matrix filled with zeros or ones. Your matrix must be a minimum size of 25 times 50.
Write a script (.m file) that creates a matrix filled with zeros or ones. Your matrix must be a minimum size of 25 times 50. There needs to be twice as many columns as rows so that the matrix appears square. Manipulate this matrix using MATLAB commands and loops to create an image or pattern in the matrix. If your initial matrix is zeroes, add ones, and if your initial matrix is ones, add zeros. Your shape cannot be a simple square or a plus sign. It must involve at least four different "lines" or pieces that create the picture Finally, write this image out to a text (.txt) file using file open and printing commands. Remember to include both your (commented) code and the resulting text file image in your lab report
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
