Question: Create a function that will take a positive integer as an argument. This function should do the followings when it is called by the user.

Create a function that will take a positive integer as an argument. This function should do the

followings when it is called by the user.

1) Generate n numbers of normal distribution random number. The number n is equal to the

value of your argument.

2) Count how many numbers are < -025, >=-0.25 & <=0.25, and >0.25.

3) Also, save numbers that fall into each category in variables A, B, and C

A : Set of numbers less than or equal to -0.25

B: Set of numbers between -0.25 and 0.25

C: Set numbers larger than or equal to 0.25

4) Calculate the sum of numbers in A, sum of numbers in B, and sum of numbers in C

5) Generate text files that will contain A, B, and C.

Please note: I am doing Computer tools which is a combination of C programming and MATLAB, but I am working on MATLAB. The script has to be in MATLAB.

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!