I am trying to get the result of righton, lefton, and input, but when I run the code it creates unlimited ans = 1. When I stop the code with ctrl+c I end up getting the answer I want. Why does "Ans = 1" show up when there is no "Ans" in my code? Here is a picture of my code. my code. Thanks in advance for your help!
MATLAB: Does the code result in unlimited ans = 1, when that is not in the code
anscodeinfiniteproblemrobotlinefollow
Best Answer