Info

この質問は閉じられています。 編集または回答するには再度開いてください。

(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 回表示 (過去 30 日間)
OLAOYE abass
OLAOYE abass 2013 年 11 月 21 日
閉鎖済み: Sean de Wolski 2013 年 11 月 21 日
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.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by