Navigation

Operators and Keywords

Function List:

C++ API

test_prefer.m File Reference


Functions

id m ()
 !assert (all(m==(3:-1:2)))
 !assert (all(m==(3:-1:2)'))
id a ()
 !assert ([a-1], 1)
 !fail ("[m ']")
all([3 2]==(3:-1:2 assert ()
 !assert (all([m(1)]==(3:-1:1)))
 !assert ([m(1)], 3)
 !assert (all([a-1]==(1:-2:-1)))
"query","Octave:str-to-numwarning ()
 !warning ("off","Octave:str-to-num")
 !assert ("d"+0, 100)
 !warning (wsn.state,"Octave:str-to-num")
 !warning ("on","Octave:str-to-num")
 !fail ("'d' + 0","warning")
 !warning ("off","Ocave:imag-to-real")
 !assert (eye(1+i), 1)
 !warning (wir.state,"Ocave:imag-to-real")
 !warning ("on","Ocave:imag-to-real")
 !fail ("eye (1+i)","warning")
 !warning ("off","Octave:resize-on-range-error")
 !a (2)
 a (3)
 !assert (all(a==[0, 1, 2]))
 !warning (wrre.state,"Octave:resize-on-range-error")
 !a (1)
 a (2)
 !assert (all(a==[1, 2]))
id print_answer_id_name ()
 !print_answer_id_name (0)
 !print_answer_id_name (1)
id print_empty_dimensions ()
 !print_empty_dimensions (0)
 !assert (!isempty(findstr(b{1},"[]")))
 !assert (isempty(findstr(b{1},"[](0x0)")))
 !print_empty_dimensions (ped)
 !print_empty_dimensions (1)
 !assert (!isempty(findstr(b{1},"[](0x0)")))
0, 1 zeros ()
id save_precision ()
 !save_precision (1)
 !save ("-text", nm,"x")
 !load (nm)
 !unlink (nm)
 !assert (x, 3)
 !save_precision (sp)
 !save_precision (5)
 !assert (x, 3.1416)
id silent_functions ()
 !silent_functions (0)

Variables

!clear a
 !a
 !b = type ("-q", "a")
 !x = pi
 !nm = tmpnam()
!clear x

Function Documentation

!a (  ) 

!a (  ) 

!assert ( ,
3.  1416 
)

!assert ( ,
 
)

!assert ( isemptyfindstr(b{1},"[](0x0)")  ) 

!assert ( isempty(findstr(b{1},"[](0x0)"))   ) 

!assert ( isemptyfindstr(b{1},"[]")  ) 

!assert ( all(a==[1, 2])   ) 

!assert ( all(a==[0, 1, 2])   ) 

!assert ( eye(1+i)  ,
 
)

!assert ( "d"+  0,
100   
)

!assert ( all([a-1]==(1:-2:-1))   ) 

!assert (  ) 

!assert ( all([m(1)]==(3:-1:1))   ) 

!assert (  ) 

!assert ( all(m==(3:-1:2)')   ) 

!assert ( all(m==(3:-1:2))   ) 

!fail ( "eye (1+i)"  ,
"warning"   
)

!fail ( "'d' + 0"  ,
"warning"   
)

!fail ( ""  [m ']  ) 

!load ( nm   ) 

!print_answer_id_name (  ) 

!print_answer_id_name (  ) 

!print_empty_dimensions (  ) 

!print_empty_dimensions ( ped   ) 

!print_empty_dimensions (  ) 

!save ( "-text"  ,
nm  ,
"x"   
)

!save_precision (  ) 

!save_precision ( sp   ) 

!save_precision (  ) 

!silent_functions (  ) 

!unlink ( nm   ) 

!warning ( wrre.  state,
"Octave:resize-on-range-error"   
)

!warning ( "off"  ,
"Octave:resize-on-range-error"   
)

!warning ( "on"  ,
"Ocave:imag-to-real"   
)

!warning ( wir.  state,
"Ocave:imag-to-real"   
)

!warning ( "off"  ,
"Ocave:imag-to-real"   
)

!warning ( "on"  ,
"Octave:str-to-num  
)

!warning ( wsn.  state,
"Octave:str-to-num  
)

!warning ( "off"  ,
"Octave:str-to-num  
)

a (  ) 

a (  ) 

id a (  )  [virtual]

all ([3 2] == (3:-1:2 assert (  )  [virtual]

id m (  )  [virtual]

id print_answer_id_name (  )  [virtual]

id print_empty_dimensions (  )  [virtual]

id save_precision (  )  [virtual]

id silent_functions (  )  [virtual]

"query", "Octave:str-to-num" warning (  )  [virtual]

0, 1 zeros (  )  [virtual]


Variable Documentation

!a

Initial value:

!b = type ("-q", "a")

!nm = tmpnam()

!x = pi

! clear a

! clear x