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