And you try to use that function once you made an object from your class:

Code:

1
2

my_object=my_class;my_object.doubleMyVariable()

You’ll end up with a very annoying error like this:

Code:

1
2

???Errorusing==>roll_diceToomanyinputarguments.

WTF?!?!? There’s no arguements! Well, that’s because MatLab secretly passes the object itself as an arguement. So there’s always at least one arguement, even if you don’t specify it. To fix this, change your class definition to this:

I am Joe. I'm one of many Joes, but I am uniquely me. I'm the messiest organized guy you'll ever meet. My glasses are always bent and my hair always a mess. I've never had a role model and as such am my own person. Scientist, programmer, Christian, libertarian, and life long learner.