Question: Develop matlab script Qtn2.m to solve following questions a) Create a column vector called odd_nums which contains odd numbers in the range 24 to

Develop matlab script Qtn2.m to solve following questions a) Create a column

 

Develop matlab script Qtn2.m to solve following questions a) Create a column vector called odd_nums which contains odd numbers in the range 24 to 204 (all inclusive). b) Write a Matlab statement to determine how many elements are there in odd_nums vector and assign answer to variable num_elements. Write down the value of num_elements as comment. c) Using odd_nums vector, create another vector called odd_nums_desc which contains elements of odd-nums but in descending order. Display odd_nums_desc. Write down the last five elements in odd_nums_desc as a comment. d) Using odd_nums and with the help of find and rem functions, display all numbers from odd_nums which are multiples of 5. How many are they? Write down the answer as a comment.

Step by Step Solution

3.44 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the MATLAB script Qtn2m that solves the given questions matlab Qtn2m a Create a column vector ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!