Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
(a) The linspace(...) function can be used to create and assign values to a 1D array (vector). Use this function to create a vector ‘v’ containing all positive even numbers less than 21. i.e. [2 4 6 8……..]
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I really need help with these questions
(a) The linspace(...) function can be used to create and assign values to a 1D array (vector). Use this function to create a vector ‘v’ containing all positive even numbers less than 21. i.e. [2 4 6 8……..]
(b) Now use the ‘w = a:b:c’ notation to create the same array as in the part (a) of this question. (c) You have been given an example code in the lecture slides for calculating average marks for your (imaginary) MATLAB scores (see below). Extend this code for 50 years of your MATLAB scores. You received 90 marks in the first year. Unfortunately, your score each consecutive year decreased by 1 mark (i.e. you received 89 marks in the second year ... 81 marks in your 10th school year ... and so on). Calculate your average marks and plot the individual marks against years. Include your code as well as the plot in your submission.
1 commentaire
Réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!