Grab by the publish
function generated HTML reports from Octave
script files.
The input parameter url must point to a local or remote HTML file
with extension ‘.htm’ or ‘.html’ which was generated by the
publish
function. With any other HTML file this will not work!
If no return value is given, the grabbed code is saved to a temporary file and opened in the default editor.
NOTE: You have to save the file at another location with arbitrary name, otherwise any grabbed code will be lost!
With a return value given, the grabbed code will be returned as string code_str.
An example:
publish ("my_script.m"); grabcode ("html/my_script.html");
The example above publishes ‘my_script.m’ by default to ‘html/my_script.html’. Afterwards this published Octave script is grabbed to edit its content in a new temporary file.
See also: publish.
Package: octave