Matrices and vectors can be saved into comma-separated values (CSV) files. Then one can read these objects back.
Let us write a matrix into a “test.csv” file:
You can read it back as:
Similarly, you can write and read vectors:
Use these I/O methods in a stand-alone application, since for security reasons execution of these examples is disabled.
Back to top
You can execute M-file (Matlab files with the extension “m”) using the method loadfile(“scrip.m”)