Navigation

Operators and Keywords

Function List:

C++ API

example.m File Reference


Functions

endif if (nargin< 2) n=0
 if (nargout > 0) if(n > 0) if(n<
endif else if (n > 0) doidx
endif if (length(idx)==0) warning("example not available for %s"
 elseif (n >=length(idx)) warning("only %d examples available for %s"
 length (idx)-1
 printf ("%s example %d:%s\n\n", name, doidx(i), block)
endfor endif endfunction!demo !example ('example')
 !plot (t, x)%!assert(example('example'
example ('example')
 !assert (code,...%!"\n example('example');\n t=0:0.01:2*pi; x=sin(t);\n plot(t,x)")%!assert(idx

Variables

 function [code_r, idx_r]
 endif [code, idx] = test (name, "grabdemo")
 idx_r = [1, length(code_r)+1]
else code_r = ""
else doidx = 1:length(idx)-1
endif name
endif for i
!demo !t = 0:0.01:2*pi
 x = sin(t)
 !test [code, idx] = example('example')
!error example

Function Documentation

!assert ( code   ) 

endfor endif endfunction !demo !example ( 'example'   ) 

!plot ( ,
 
)

elseif ( n >=  lengthidx  ) 

n example ( 'example'   ) 

endif if ( length(idx)  = = 0  ) 

endif else if ( ,
 
)

if ( nargout  ,
 
)

endif if (  )  [pure virtual]

length ( idx   ) 

printf ( "%s example %d:%s\n\n"  ,
name  ,
doidx(i)  ,
block   
)


Variable Documentation

!demo !t = 0:0.01:2*pi

!test[code, idx] = example('example')

doidx = 1:length(idx)-1

endif[code, idx] = test (name, "grabdemo")

!error example

Initial value:

 example (name, n)

  if (nargin < 1 || nargin > 2)
    print_usage ()

Initial value:

 1:length (doidx)
      block = code (idx(doidx(i)):idx(doidx(i)+1)-1)

idx_r = [1, length(code_r)+1]

x = sin(t)