diff --git a/Examples/matlab/class/runme.m b/Examples/matlab/class/runme.m index 298ec287c4c..2fd45b3d9bd 100644 --- a/Examples/matlab/class/runme.m +++ b/Examples/matlab/class/runme.m @@ -11,7 +11,7 @@ % ----- Access a static member ----- -disp(sprintf('A total of %i shapes were created', swigexample.Shape.nshapes())); +disp(sprintf('A total of %i shapes were created', swigexample.Shape.nshapes)); % ----- Member data access ----- @@ -49,5 +49,5 @@ clear c clear s -disp(sprintf('%i shapes remain', swigexample.Shape.nshapes())); +disp(sprintf('%i shapes remain', swigexample.Shape.nshapes)); disp('Goodbye') diff --git a/Examples/matlab/simple/runme.m b/Examples/matlab/simple/runme.m index fed4593d357..047ba2284d9 100644 --- a/Examples/matlab/simple/runme.m +++ b/Examples/matlab/simple/runme.m @@ -10,10 +10,10 @@ % Manipulate the Foo global variable % Output its current value -swigexample.Foo() +swigexample.Foo % Change its value swigexample.Foo(3.1415926) % See if the change took effect -disp(sprintf('Foo = %f', swigexample.Foo())) +disp(sprintf('Foo = %f', swigexample.Foo))