Question: Need help on MATLAB!!! Thank you Homework 4-Logicals Function Name: trackList Inputs 1. (char) A 1x(6'N) vector of song names 2. (logical) A 1xN vector
Homework 4-Logicals Function Name: trackList Inputs 1. (char) A 1x(6'N) vector of song names 2. (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 oniginal positions of the actual songs 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: >> songs 'FLASH HOMEC S ODS-CANTT STRON >[wrong, positions] trackList (songs, belong) The following gives an example of the two outputs for the following test case: wrong-> . MASKO DESPA positions6 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 . 3 of 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
