Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define the following matrix array1 and display the contents of the following subarrays: array1 1.1 0.0 2.1 -1.4 0.0 -2.1 -3.5 -3.0-5.6 2.8 0.3

 

Define the following matrix "array1" and display the contents of the following subarrays: array1 1.1 0.0 2.1 -1.4 0.0 -2.1 -3.5 -3.0-5.6 2.8 0.3 0.1 -0.4 5.1 0.0 1.1 -3.0 6.0 4.3 1.3 1. Extract the third row from the matrix "array1", 2. Extract the second column from the matrix "array 1". 3. Extract a submatrix "array2" that contains three rows and two columns from the matrix "arrayl" 4. Find the size of the matrix "array!". 5. Replace the number 1.1 in the matrix "array!" with 2.2. 6. Transpose the matrix "array2". 7. Sum the element at each column in the matrix "array!". 8. Sum the element at each row in the matrix "array 1". 9. Find the sum of all element in "array1". 10. Find the elements at the diagonal using: diag(array1) 11. Flip the matrix from left to right using: fliplr(array 1 Q2: Write a matlab code that can load a gray scale medical image and do the following: 1. Read the image and show it in MATLAB. 2. Find the maximum and minimum intensities in the image (use max, and min commands) 3. Find the intensity at the origin. 4. Show the color map at the right side of the image (intensity levels). 5. Find the size of the image (number of rows and columns). 6. What are the intensity values of the pixels at the coordinates: (2,10), (190,120) and (100,220)? 7. Define the location of a small object in the image and then extract it to be a new image. 8. Show the extracted part of the image as a new image. 9. Calculate the number of bits of each image. 10. How many bits need to store the image in the computer?

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Operations Management Sustainability And Supply Chain Management

Authors: Jay Heizer, Barry Render, Chuck Munson

13th Edition

0135173620, 978-0135173626

More Books

Students also viewed these Mathematics questions