Cannot manipulate matrices of tuples in function scope but works fine in the REPL

Welcome!

That’s pretty good evidence that you’re not running what you think you’re running. Like rdeits, it works for me and I also suspect you have more than one method defined for that matrix function. You can see which one is being called by asking Julia: @which matrix(min,max,n). And you can see all the defined methods with methods(matrix).

5 Likes