Question: Matlab question Function Name: trackList Inputs: 1. 2. (char) A 1x(6*N) vector of song names (logical) A 1XN vector of whether or not each song

Matlab question Matlab question Function Name: trackList Inputs: 1. 2. (char) A 1x(6*N)

Function Name: trackList Inputs: 1. 2. (char) A 1x(6*N) vector of song names (logical) A 1XN vector of whether or not each song is on that artist's tracklist Outputs: 1. (char) A 1xP vector of the song names that should not be on the tracklist 2. (double) A 1xM vector of the original positions of the actual songs Background: Music Midtown 2018 is coming up and you're really excited to go! The lineup of all the artists performing was just released and to prepare for the festival you're going to go through and listen to some of the artists' music. But Spotify just got hacked and now the tracklists of different albums have the wrong songs in them! You decide to use MATLAB to figure out which songs in the tracklist were actually sung by the artist. Function Description: Given a list of the first 5 letters of the songs in a mixed up tracklist and a logical vector of whether the song belongs in the tracklist, output the songs that should not be included in the tracklist. You should also output a vector of the positions of the songs that belong in ascending order. Example: The following gives an example of the two outputs for the following test case >> songs="FLASH HOMEC SKODESPA > belong [true true false false true true >> [wrong, positions] - trackList(songs, belong) TT STRON wrong 'MASKO DESPA positions> Notes: . Song names will always be five capital letters followed by a space, both in the input and output. You will not be given a test case with no falses in the logical input vector

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!