필터 지우기
필터 지우기

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일)
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