Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Both Problem 3 and 4 Prob 3. 25pts Write a Matlab script to generate the following. Do not show any numerical results. Show his- tograms
Both Problem 3 and 4
Prob 3. 25pts Write a Matlab script to generate the following. Do not show any numerical results. Show his- tograms only. (a) 10000 random real numbers uniform in the range from 20 to 50. Show histogram in 30 bins. (b) 10000 Gaussian random real numbers with mean 20 and standard deviation 50. Show histogram in 30 bins. (c) 300 x 300 matrix of random integers uniform in the range from 50 to 100, including both ends. No histogram is needed. (d) 10000 random integers, either l's or 0's. But l's will occur roughly 70% of the time. Show histogram. (e) 10000 random integers containing 2 for 30% of the time, 6 for 20% of the time, and 9 for 50% of the time. Show histogram. Prob 4. 25pts Write a Matlab program to let the user input two integers M and N as the row and column num- bers of a matrix. Generate an MXN random matrix of integers uniform between 20 and 20. Use for loops to determine the maximum value along each column. Store the results are in a row vector and output it. See the example below. Except for zeros, you cannot use any Matlab built-in function, especially not max. Run your pogram with M = 5, N = 6. Command Window New to MATLAB? See resources for Getting Started. Matrix 0.6948 0.0344 0.7655 0.4898 0.3171 0.4387 0.7952 0.4456 0.9502 0.3816 0.1869 0.6463 Results 0.9502 0.4387 0.7952 0.6463 fx >>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