MATLAB version of Interactive Slinky Thing

September 6th, 2011 | Categories: general math, just for fun, matlab | Tags:

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!
MATLAB slinky thing

  1. matlab
    September 17th, 2011 at 15:40
    Reply | Quote | #1

    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,~)

  2. September 17th, 2011 at 23:41
    Reply | Quote | #2

    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.

  3. matlab
    September 19th, 2011 at 16:16
    Reply | Quote | #3

    @Mike Croucher
    thanks for your answer.