Question: 1 . Type the following code: > > image 1 = zeros ( 1 0 0 , 1 0 0 ) ; > > image

1.Type the following code:
>> image1=zeros(100,100);
>> image1(1:10,:)=1;
>> image1(21:30,:)=1;
>> image1(41:50,:)=1;
>> image1(61:70,:)=1;
>> image1(81:90,:)=1;
>> imwrite(image1,\'new.tif\',\'tiff\')
When we copy and paste this, we see a black and white image. Try this on your computer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!