MATLAB version of Interactive Slinky Thing
Matt Tearle has produced a MATLAB version of my Interactive Slinky Thing which, in turn, was originally inspired by a post by Sol over at Playing with Mathematica. Matt adatped the code from some earlier work he did and you can click on the image below to get it. Thanks Matt!
how can we run or debug this code? it is not working when we click run button(or press F5). it gives an error about line 99 column 29. it is about this character: “~”
line 99 : function update(hObject,~)
Your version of matlab is probably too old. That character is a tilde and its use means that the argument in question is not being used. I forget exactly when it was introduced…2009b maybe.
Just change the tilde to any dummy variable name and it should be fine.
@Mike Croucher
thanks for your answer.