Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab 3. Practice Problems 1) Create a vector of 20 random number between 0 and 50 (use the rand command) Remember to use the help

Matlab image text in transcribed
image text in transcribed
3. Practice Problems 1) Create a vector of 20 random number between 0 and 50 (use the rand command) Remember to use the help rand' to get more info about the rand command if need be. a. Find the minimum and maximum values in the vector using a loop. Double check your answer by using the min and max functions. b. Find the sum of the values in the vector using a for loop. Double check your answer by using the sum function. 2) Create a vector of 10 random number using x=floor(rand(1,10)*5). Create a loop that will print the grade for each value according to the following table (Use fprintf command) Grade Score Score = 4 Score = 3 Score = 2 Score-1 Score = 0 Add the matrices A and B using a for-loop. - 5 4 -3 A = 1 0 1 B = 9 4 2 -10 -3 5 Afterwards, check your answer using the built-in + matlab operator. Perform the element-by-element multiplication D. E using a for-loop: - 1 -9 2 D = 7 4 3 2 3 -10 4 5 6 Afterwards, check your answer using the built-in. matlab operator

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

We need a set of shelves 10 feet, eight inches long.

Answered: 1 week ago

Question

You have to agree that 50,000,000 U.S. citizens cannot be wrong.

Answered: 1 week ago