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...

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]
Nov 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here