Question: Problem 3: (5 Points) Ask someone over 40 what a Compact Disc is, and then write a function with the header: function [CD] = myMusicCollection(genre,
Problem 3: (5 Points) Ask someone over 40 what a Compact Disc is, and then write a function with the header: function [CD] = myMusicCollection(genre, title, artist, year, stars, CD) which adds a new CD to an existing data structure with fields genre (a string), title (a string), artist (a string), year (a double), and stars (a double) and returns the updated data structure. This function will only work if CD already has at least one album.

![is, and then write a function with the header: function [CD] =](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d3c63baed_49366f3d3c5ab692.jpg)

Problem 3: (5 Points) Ask someone over 40 what a "Compact Disc" is, and then write a function with the header: function [CD] = myMusicCollection (genre, title, artist, year, stars, CD) which adds a new CD to an existing data structure with fields genre" (a string), "title" (a string), "artist" (a string), "year" (a double), and "stars" (a double) and returns the updated data structure. This function will only work if CD already has at least one album >> CD.genre'Classical' >CD.title Mass in G' >> CD . artist = 'Bach'; CD.year-2004; >> CD.stars-3.5; >CD myMusiccollection ('Classical', 'Symphony 40','Mozart', 2015, 4, CD)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
