Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

(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 visualizzazione (ultimi 30 giorni)
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.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by