In the Cody Coursework platform, there is a built in function called assessVariableEqual. How can I adjust the tolerance of this function?

In the Cody Coursework platform, there is a built in function called assessVariableEqual. It checks to see if two variables are equal to each other to within a tolerance. How can I adjust the tolerance of this function?

 Accepted Answer

According to its documentation you use the 'AbsoluteTolerance' and/or 'RelativeTolerance' name/value pairs.

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!