Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For i = 1 to 1000 generate 100 random numbers between -0.5 and 0.5 (using rand 0.5) add them up . Store this sum in
For i = 1 to 1000 generate 100 random numbers between -0.5 and 0.5 (using rand 0.5) add them up . Store this sum in a vector elements x(i)
for i = 1 to 1000 HW# 3-1. We said that the normal distribution can arise by summing a large number of random displacements or errors (like the Galton triangle). Write a Matlab script for the following pseudo-code: generate 100 random numbers between -0.5 and 0.5 (using rand 0.5) add them up store this sum in a vector element x(i) end Plot a histogram of Depending on the number of bins, and your random numbers, your histogram should look something ike this end
Plot a histogram of x
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