Question: Exercises to submit Create a New Project for every exercise. Take a screenshot of the source code along with its output and place the source

 Exercises to submit Create a New Project for every exercise. Take

Exercises to submit Create a New Project for every exercise. Take a screenshot of the source code along with its output and place the source code and the screenshot in a zipped folder named LastNameFirstName_Lab2 Exercise 1 Given the following row vector: v = [10, 22, 30, 40, 50) and using a while loop find the mean value of the entire 1D array. Count the number of elements using your own counter variable, i.e., do not use, for example, built-in functions such as size or length. Place your code into a .m file Note: In addition, do not use any built-in functions such as sum or mean Exercise 2 Create a 3 x 3 matrix, named A, consisting of Os only. Create a second 2D matrix: B=[1, 2, 3; 4, 5, 6; 7, 8, 9]. Using a nested for loop copy one element at a time from matrix B to matrix A. Print both matrices Exercise 3 Based on Ex. 6 (Exercises to practice), save separately the Green and Blue channels of the color image with cars using the imwrite function (save channels into two different files) Exercise 4 From the original image with the cars, save only the blue car using the imwrite function. Use the concepts from Ex. 5 (Exercises to practice) to save all three channels of the image (R, G, B) as a 3D matrix

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 Databases Questions!