Question: .mat file: https://file.io/HMCusR If the user only enters a single W value, your program should calculate and output a single x value. No plot required

 .mat file: https://file.io/HMCusR If the user only enters a single W

.mat file: https://file.io/HMCusR

If the user only enters a single W value, your program should calculate and output a single x value. No plot required if a single If the user enters a vector of W values, your program should calculate a vector of x values (one for each weight). From this Determine the maximum weight entered and the associated distance it moves through. Plot weight (x-axis) versus distance moved through, x, on a basic plot. Your Scatter plot (not connected dots or lines) should include the following formatting: X and Y labels, Title, and Grid lines a single value of W and one for a vector for Enter the veight IN: [10 540 2000 40 5606 958 1580 7800) Enter the weight IN]: 500 Enter the k2 value [N/m]: 15000 Enter the rest position, d [n]: 1 The weight will pass through a distance of 0.0500 The nawight given 17000) will pass through . distance of 2.00. Perform an initial data validation for the menu selection regarding entering a resistance or a color band. If the user exits out of the menu, an error should be produced that explains the user did not enter a value in the menu and therefore the program If the user chooses resistance, the user will enter a resistance in ohms as a vector with each digit being a separate value in the vector. Prior to using the resistance vector in your function, check that every digit entered after the first two digits is zero. If not, your program should show an error message and terminate. Create and call on a user-defined function (MA4_Task2 CougarnetlD.m) with one input (resistance vector) and one output (color bands vector). In your script (not in the function), the program should display (in text) the color bands in the order they will appear on the resistor If the user chooses color band, the user should enter the color band, as one string array in a single input statement. Prior to using the string array in your function, check that there are only three colors entered. If not, your program should show an error message and terminate. Create and call on a user-defined function (MA4_Task3_CougarnetiD.m) with one input (string array) and one output (resistance vector). In your script (not in the function), the program should display the resistance in ohms. and the program should display the resistance in ohms. EXTRA CREDIT: Output the results with the symbol for ohms in the command window (2) Enter the resistance in ohas as a vector: >> [1 0 0] Enter the color band as a string array (3 colors)I8lack", "Erees", "Orange"'1 The restistance for the gives color band is 5408. If the user only enters a single W value, your program should calculate and output a single x value. No plot required if a single If the user enters a vector of W values, your program should calculate a vector of x values (one for each weight). From this Determine the maximum weight entered and the associated distance it moves through. Plot weight (x-axis) versus distance moved through, x, on a basic plot. Your Scatter plot (not connected dots or lines) should include the following formatting: X and Y labels, Title, and Grid lines a single value of W and one for a vector for Enter the veight IN: [10 540 2000 40 5606 958 1580 7800) Enter the weight IN]: 500 Enter the k2 value [N/m]: 15000 Enter the rest position, d [n]: 1 The weight will pass through a distance of 0.0500 The nawight given 17000) will pass through . distance of 2.00. Perform an initial data validation for the menu selection regarding entering a resistance or a color band. If the user exits out of the menu, an error should be produced that explains the user did not enter a value in the menu and therefore the program If the user chooses resistance, the user will enter a resistance in ohms as a vector with each digit being a separate value in the vector. Prior to using the resistance vector in your function, check that every digit entered after the first two digits is zero. If not, your program should show an error message and terminate. Create and call on a user-defined function (MA4_Task2 CougarnetlD.m) with one input (resistance vector) and one output (color bands vector). In your script (not in the function), the program should display (in text) the color bands in the order they will appear on the resistor If the user chooses color band, the user should enter the color band, as one string array in a single input statement. Prior to using the string array in your function, check that there are only three colors entered. If not, your program should show an error message and terminate. Create and call on a user-defined function (MA4_Task3_CougarnetiD.m) with one input (string array) and one output (resistance vector). In your script (not in the function), the program should display the resistance in ohms. and the program should display the resistance in ohms. EXTRA CREDIT: Output the results with the symbol for ohms in the command window (2) Enter the resistance in ohas as a vector: >> [1 0 0] Enter the color band as a string array (3 colors)I8lack", "Erees", "Orange"'1 The restistance for the gives color band is 5408

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!