#! /usr/bin/octave -q function syntax_error_has() ## this doesnt define zzz, 'NameError' ## valid syntax but. x=eig(1,zzz) end profile on; for ix=1:56, disp('hello');, end; profile info ##profile on; syntax_error_has ; profile info ##dont handle now profile on z=@(x,y) (x+y); #sum-anonymous function y=@(x,y) (x.*y); #prod-anonymous fcn z(1,2) y(1,2) z([1:10],[2:11]) z([1:10],[2:11]) z([1:10],[2:11]) y([1:10],[2:11]) # this anonymous y is different from z y([1:10],[2:11]) # this anonymous y is different from z y([1:10],[2:11]) # this anonymous y is different from z profile info