Skip to content

Instantly share code, notes, and snippets.

@ajm188
Created February 2, 2016 21:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajm188/3868431ce52c6cf284a4 to your computer and use it in GitHub Desktop.
Save ajm188/3868431ce52c6cf284a4 to your computer and use it in GitHub Desktop.
hello world in matlab and ruby (also incidentally prints 3)
a = 3 % 1; def disp(text); puts text; end; puts 3
disp('Hello World!');
@lucbettaieb
Copy link

Use ; to suppress output!

@ajm188
Copy link
Author

ajm188 commented May 24, 2016

Ooh I was about to comment on here explaining why the three had to be printed, but I realized a better way. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment