Question: undefined write code in Matlab from Ex 8 to Ex 11 Exercises to be marked % Exercise 8 Draw a letter T in white color
undefined
write code in Matlab from Ex 8 to Ex 11
Exercises to be marked % Exercise 8 Draw a letter T in white color on a 500x500 black background. Choose suitable size of the letter T yourself to look nice. % Exercise 9 Show a 500x500 image in which every odd-numbered row and column are white, while every even-numbered row and column are black. Do not use the "for" loop or "if" condition in your code. (Can you see the white and black pixels separately? Please zoom in to see them clearly.) % Exercise 10 Repeat Ex9 using the "for" loop and "if" condition. %Exercise 11 Read MATLAB's sample image spine.tif. Call it A. Calculate its minimum and maximum values and display them. Stretch the image in [0, 255) range (the minimum value should linearly map to zero and the maximum to 255). Call the result as B. Calculate C = B-A. Display A, B, and C side- by-side in a row. Optional Exercises for Bonus Marks %Exercise 12 (Optional) (Bonus) Draw a while circle of radius 100 in the center of a black 500x500 background image. %Exercise 13 (Optional) (Bonus) Draw a while disk of radius 100 in the center of a black 500x500 background image. Exercises to be marked % Exercise 8 Draw a letter T in white color on a 500x500 black background. Choose suitable size of the letter T yourself to look nice. % Exercise 9 Show a 500x500 image in which every odd-numbered row and column are white, while every even-numbered row and column are black. Do not use the "for" loop or "if" condition in your code. (Can you see the white and black pixels separately? Please zoom in to see them clearly.) % Exercise 10 Repeat Ex9 using the "for" loop and "if" condition. %Exercise 11 Read MATLAB's sample image spine.tif. Call it A. Calculate its minimum and maximum values and display them. Stretch the image in [0, 255) range (the minimum value should linearly map to zero and the maximum to 255). Call the result as B. Calculate C = B-A. Display A, B, and C side- by-side in a row. Optional Exercises for Bonus Marks %Exercise 12 (Optional) (Bonus) Draw a while circle of radius 100 in the center of a black 500x500 background image. %Exercise 13 (Optional) (Bonus) Draw a while disk of radius 100 in the center of a black 500x500 background image
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
