marathon, defines a method run(int a, int b), how would you call it for an instance of marathon named bob? in matlab

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.m
% Create an instance of the Marathon class
bob = Marathon();

% Call the run() method on the instance with arguments 3 and 5
bob.run(3, 5);
140 chars
6 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