Navigation

Operators and Keywords

Function List:

C++ API

logspace.m File Reference


Functions

 elseif (nargin==3) if(length(n)
else error ("logspace: arguments must be scalars")
endif else print_usage ()
endif if (length(x1)==1 &&length(x2)==1) x2_tmp
 if (x2==pi) x2_tmp
 !assert ((size(x1)==[1, 50]&&x1(1)==10 &&x1(50)==100%!&&size(x2)==[1, 10]&&x2(1)==10 &&x2(10)==100%!&&size(x3)==[1, 10]&&x3(1)==10 &&x3(10)==0.01%!&&size(x4)==[1, 10]&&x4(1)==10 &&abs(x4(10)-pi)< sqrt(eps)))
!error logspace ([1, 2;3, 4], 5, 6)
!error logspace ()
!error logspace (1, 2, 3, 4)

Variables

function retval
endif endfunction!test !x1 = logspace (1, 2)
 !x2 = logspace (1, 2, 10)
 !x3 = logspace (1, -2, 10)
 !x4 = logspace (1, pi, 10)

Function Documentation

!assert ( (size(x1)==[1, 50]&&x1(1)==10 &&x1(50)==100%!&&size(x2)==[1, 10]&&x2(1)==10 &&x2(10)==100%!&&size(x3)==[1, 10]&&x3(1)==10 &&x3(10)==0.01%!&&size(x4)==[1, 10]&&x4(1)==10 &&abs(x4(10)-pi)< sqrt(eps))   ) 

elseif ( nargin  = =3  ) 

else error ( "logspace: arguments must be scalars"   ) 

if ( x2  = =pi  ) 

endif if ( length(x1)  = =1 &&length(x2)==1  ) 

!error logspace ( ,
,
,
 
)

!error logspace (  ) 

!error logspace ( ,
 
)

endif else print_usage (  ) 


Variable Documentation

endif endfunction !test !x1 = logspace (1, 2)

!x2 = logspace (1, 2, 10)

!x3 = logspace (1, -2, 10)

!x4 = logspace (1, pi, 10)

endif retval

Initial value:

 logspace (x1, x2, n)

  if (nargin == 2)
    npoints = 50