Question: A company wants you to write a MATLAB program that: - Calculates and displays a resistor value along with its tolerance for a colour code
A company wants you to write a MATLAB program that:
Calculates and displays a resistor value along with its tolerance for a colour code entered by a user.
Consists of an initial menu system displayed to the user with instructions on how to enter their colour bands.
Allows a user to enter resistor band colours for either band or band resistor types.
Has error checkinginput validation including notifying and re prompting the user for input if they enter an invalid menu selection or colour.
Displays the decoded resistor value and toleranYour main MATLAB script must handle the userinterface elements of your program only. I.e it will contain the menu system, user input and the code that outputs the final answer to the Command Window.
Your main MATLAB script must also call your userdefined function from within its code.
Your userdefined function must only handle the mathematical elements of the colour code decoding. The resistors value and tolerance will then be returned from your function back to your main script.
Error checkinginput validation may be included in both your main script and userdefined function where relevant.
use the image provided
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
