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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started