Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need matlab help, also explain and tell how you did it. Inputs 1. (char) A 1 times(3*N) vector of initials 2. (logical) A 1 times
need matlab help, also explain and tell how you did it.
Inputs 1. (char) A 1 times(3*N) vector of initials 2. (logical) A 1 times N vector of whether or not each suspect looks familiar Outputs: 1. (char) A 1 times P vector of the initials of the people mistaken for suspects 2. (double) A 1 times M vector of the original positions of the remaining suspects Function Description: While working on your CS 1371 homework, a villain rushes in and steals your laptop with all of your MATLAB code on it! You think you saw the thief's face, so you file a case with the GTPD. They then gather a group of suspects who meet the description you provided for the Clery Act, and line them up for you to identify. You decide to code a MATLAB function (on the mobile app, since your laptop was stolen) to help you quickly identify who could have stolen your laptop. Given a list of the initials of the suspects in the line-up and a logical vector of whether you recognize each suspect, output the initials of those who were wrongly accused - that is, those you do NOT recognize. The initials should be output in alphabetical order, based on first initial. You should also output a vector of the positions of the suspects you recognize in the line-up, in ascending order. Example The following gives an example of the two outputs for the following test case: initials = 'AV AL WL NB EB AS' familiar = [true true false true true false] mistaken = 'AS WL' positions = [1 2 4 5]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started