Login
You're viewing the code4lib.social public feed.
  • Nov 24, 2026, 10:58 PM

    @foone When I was an intern nearly 20 years ago, I had a funny experience with Matlab.

    I had to add features in a Matlab simulation script someone else started. At first it ran something like 1 hour. After I added a feature, it tool like 10 minutes.

    I spent 3 days searching what part of the simulation I accidentally deleted.

    💬 1🔄 0⭐ 2

Replies

  • Nov 24, 2026, 10:59 PM

    @foone The solution was: For a new feature, I needed the Matlab function "max". Originally, one variable (or array?) in the script was named "max" - what rendered the function "max" inaccessible. So I renamed the variable.
    The fact that there was a variable with the same name as a Matlab-internal function (that was read or written permanently) slowed Matlab down by factors.

    When telling the original developer, his reaction was: So I drank all that coffee waiting for the results for nothing?

    💬 0🔄 0⭐ 1