fabien van mook

all packages "fvm-*"

package "fvm-xm"

function file "xm_to_m.m"

Function xm_to_m(fn,targetdir)

converts every multiline-string construct of the form
of "<<< ... >>>" into a proper Octave string in the 
form of '...'.

The string is read from the specified file and the 
result of the convertion is written into a file with
extension ".m", in the given target directory. If no 
target directory is given, the result is written
into the working directory.

Note that the text in between
-- is not changed at all: percent signs, single and 
   double quotes and backslashes retain their literal
   meaning;
-- may not contain the tokens <<< and >>>.

(c) 2026 fabien van mook

2026.08.20 release of this file within package "fvm-xm" under GNU GPLv3+