Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago