/trunk/Examples/octave/simple/runme.m
MATLAB | 22 lines | 14 code | 8 blank | 0 comment | 1 complexity | ec3c30e582297fbd56595c88b61ac60a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- # file: runme.m
- example
- # Call our gcd() function
- x = 42
- y = 105
- g = example.gcd(x,y)
- printf("The gcd of %d and %d is %d\n",x,y,g);
- # Manipulate the Foo global variable
- # Output its current value
- example.cvar.Foo
- # Change its value
- example.cvar.Foo = 3.1415926
- # See if the change took effect
- printf("Foo = %f\n", example.cvar.Foo);