Listing Objects from the Current Octave Session
o_ls is an enhanced listing function, which
also lists user-defined functions, as opposed to
o_whos, which only list variables.
Note that this function works properly on Octave >= 3.6.1, but is known
not to list user-defined functions on Octave 3.4.1 (for some unknown reason the
completion_matches does not return the names of
logical that indicates the desired type of output: if
a logical that indicates if the automatic Octave variable
a character vector or a list depending on the value of argument
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# only variables o_assign(list(a=1, b=2, c=5)) o_ls() # compare with the output of standard Octave functions o_who() # should be the same output o_whos() # variables and user-defined functions o_clear(all=TRUE) # first clear Octave session o_source(system.file('scripts/ex_source.m', package='RcppOctave')) o_ls() o_ls(long=TRUE) # compare with the output of standard Octave functions o_who() o_whos()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.