Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help writing a Matlab code! Page of 6 -ZOOM 3. Create a function that will take a positive integer as an argument. This function

Need help writing a Matlab code!

image text in transcribed

Page of 6 -ZOOM 3. Create a function that will take a positive integer as an argument. This function should do the ollowings 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 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 >>-1000 >> [A, B, c, a, b, c1-random-gen (x) ; Asum -352.588494905797 Bsum 3.72869745137248 39.481921614884 Less than -0.25: 369 Betveen -0.25 and 0.25: 190 Larger than 0.25: 441 The numbers are saved in myData.txt

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions