Skip to content

Commit

Permalink
[MATLAB] Removed parentheses for accessing static variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Apr 16, 2014
1 parent f59c5c2 commit c0e39fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Examples/matlab/class/runme.m
Expand Up @@ -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 -----

Expand Down Expand Up @@ -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')
4 changes: 2 additions & 2 deletions Examples/matlab/simple/runme.m
Expand Up @@ -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))

0 comments on commit c0e39fb

Please sign in to comment.