My MATLAB origins betrayed me. I kept thinking - you can't put function definitions in a script in Python. Man, I gotta write a module and THEN a script that calls the module? But, in Python, you can include function defs in a 'script'. So the following works perfectly well:
Take that MATLAB.
def func1():
print '1'
def func2():
print '2'
func1()
Take that MATLAB.
yea, matlab sucks for this.
ReplyDelete