Question: Matlab Help Array Comparisons a. Generate and display a 3-by-3 array, ra, of random floating point numbers between 0 and 1. b. Perform a comparison

Matlab Help

Array Comparisons

a. Generate and display a 3-by-3 array, ra, of random floating point numbers between 0 and 1.

b. Perform a comparison that returns a 3-by-3 logical array indicating the elements that are less than 0.5.

Position of a Pattern

a. Assign to ages a vector of 10 random integers with values between 21 and 23, inclusively. For example, ages might be a list of the ages of 10 patients. Then, using find, give a command to assign to pos21 a vector of the indices where 21 occurs.

b. Assign to weight a vector of 10 random integers between 100 and 250. For example, weight might store the weights of 10 patients. Using weight and pos21 from the previous Quick Review Question, write an expression to display the weights of the patients who are 21 years old.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!