Write a program that uses a for loop to determine the mean of value of the

Write a program that uses a for loop to determine the

This preview shows page 3 out of 3 pages.

Write a program that uses a forloop to determine the mean of value of the elements of a vector vThe program should display both the mean calculated by your loop as well as by the MATLAB meanfunction. Test the program using the vector v = [3 9 1 9 4 8 5 6]7.Program plotGaussian.m Write a MATLAB program that uses a for loop to tabulate the Gaussian (normal) distribution. Create an array (domain) z=[-5:0.1:5], and then use a the loop to march through the elements of the array to calculate  2exp21)(2zzP. Plot this function. 8.Program Fibonacci.m Write a MATLAB program equivalent to the program below that “rolls” the indicated instructions into a loop. . . 9.Program RunningAvg.m Write a MATLAB program that “unrolls” the following loop into a series of equivalent statements (similar to the “unrolled” loops that you “rolled” into loops in the earlier problems).
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture