Question: Wavelengths ( Conditional Statement Practice ) My Solutions The following code has been written with the intent of telling the user what color they can
Wavelengths Conditional Statement Practice
My Solutions
The following code has been written with the intent of telling the user what color they can expect to see based on the measured wavelength nm of photons passing through a wavemeter. However, the student who wrote this code did so poorly, and needs help figuring out where they went wrong.
Your job is to debug this code based on the following criteria for light:
Violet:
Blue:
Cyan:
Green:
Yellow:
Orange:
Red:
Error for a color outside of the range
All dimensions are in nm Pay close attention to the difference between a bracket and a parenthesis symbol.
Function
Save
Reset
MATLAB Documentation
tablefunction myFunctionWLif WL &&
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
