Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help me writing this program on Matlab Write a program that takes 5 input

ID: 3818643 • Letter: P

Question

Please help me writing this program on Matlab

Write a program that takes 5 inputs, in the following order 1. A string that is the file location of an image, as in 'dogeBlank.ipg' 2. A string that is the file location of a .csv file, as in 'hiddenText.csv' 3. A string that is either 'red', 'green', or 'blue' 4. A Boolean for taking the negative of the image 5. A Boolean for taking the negative of the hidden message Two images and two hidden messages are provided for you on Sakai. The first image and it corresponding hidden message look like this: Your program should do the following in a single function: a. Read in the image file and store the image in a variable. b. Read in the csv file and store the resulting matrix in a variable. c. Convert the matrix from the csv file into a uint8. d. If the Boolean for taking the negative of the image is true, call the function from last week's recitation to take the negative of it, using this negative in place of the image from then on. e. If the Boolean for taking the negative of the message is true, call the function from last week's recitation to take the negative of it, using this negative in place of the hidden message from then on. f. Replace the given color in the image with the hidden message. g. Return the resulting combination as an output. For the first image, the resulting output for the function call: img = rec9prob3 ('doge Blank. jpeg', 'hiddenDogeText. csv', 'green', 1, 1);

Explanation / Answer

M = csvread(hiddenText.csv);

disp("enter the color either red green or blue");

strread("%s",strcl);

neg=FALSE;

neg2=FALSE;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote