Question: MatLab Programming Write a script that will create a (random) vector of ages (real numbers, not integers). The script should contain the following prompts: -the

MatLab Programming

MatLab Programming Write a script that will create a (random) vector of

Write a script that will create a (random) vector of ages (real numbers, not integers). The script should contain the following prompts: -the user will provide the number of elements in the vector. -the user will provide the age of the oldest person in the group. For example: Enter the number of persons in the group: 50 Enter the age of the oldest person: 37 Save the vector containing the ages in a ".dat file" called ages_vector.dat Write a script that will read the ages_vector.dat file created in the previous problem. -the script will print the number of persons in the group -the script will compute and print the "average age

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!