Question: Using Matlab 1. Create an array size that stores the shoes size of 6 people. Setup the array to initially be filled with ones. Then

Using Matlab

1. Create an array size that stores the shoes size of 6 people. Setup the array to initially be filled with ones. Then use a for loop to fill the array with sizes 5 - 15 by an interval of 2.

a)Output the 3rd size in the array.

b) swap the value of the 2nd and 6th size & re-output the array

2. Create an array full of 12 values ( 12, 7, 3, 7, 9, 4, 7,9, 19,7,13, 7). Use a for loop to count all of the 7's within the array.

3. Create a while loop that asks the user whether they are a Duke or Carolina fan. If they are a Carolina fan and If they watched the game last night ( an input of yes or no) output that they are "a true fan", if not they are "a mediocre fan".

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!