If marathon
is a class in MATLAB, and run
is a method of that class that takes two integer arguments a
and b
, you can call the method on an instance of the class named bob
as follows:
main.m140 chars6 lines
This will execute the run()
method of the bob
object with arguments a = 3
and b = 5
. You can replace these values with the ones you need for your specific use case.
gistlibby LogSnag