Filter löschen
Filter löschen

Including external text in Matlab code

1 Ansicht (letzte 30 Tage)
Moshe
Moshe am 1 Sep. 2012
I am writing a script to solve a set of differential equations in Matlab. The equations and related objects are generated externally (in Mathematica) and translated to Matlab format. The end point of that process results in (many) snippets of text which I can cut and paste into the Matlab script in the appropriate places. It would be nicer to be able to load that text from a file into the script in the appropriate places. How do I do that?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 1 Sep. 2012
Write the output to a .m file, and use run()

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by