Including external text in Matlab code

1 vue (au cours des 30 derniers jours)
Moshe
Moshe le 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 1 Sep 2012
Write the output to a .m file, and use run()
  1 commentaire
Moshe
Moshe le 1 Sep 2012
That works, thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by