on 47d955a help sign in
34 lines 607 B history raw
1function zz=sample(aa)
2%%%%%%%%%%%%%%%%%%
3% some comments
4%%%%%%%%%%%%%%%%%%
6x = 'a string'; % some 'ticks' in a comment
7y = 'a string with ''interal'' quotes';
9for i=1:20
10 disp(i);
11end
13a = rand(30);
14b = rand(30);
16c = a .* b ./ a \ ... comment at end of line and continuation
17 (b .* a + b - a);
19c = a' * b'; % note: these ticks are for transpose, not quotes.
21disp('a comment symbol, %, in a string');
23!echo abc % this isn't a comment - it's passed to system command
25function y=myfunc(x)
26y = exp(x);
28%{
29 a block comment
30%}
32function no_arg_func
33fprintf('%s\n', 'function with no args')
34end