Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 Using odd nums and with the help of find and rem fiunctions, display all numbers from odd nums which are multiples of 5. How many are they? Write down the answer as a comment. d)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is a verb?

Answered: 1 week ago

Question

Does it have correct contact information?

Answered: 1 week ago