how to convert text file as it was written .m file to call functions?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Melih Furkan SEN
le 22 Avr 2024
Commenté : Melih Furkan SEN
le 25 Avr 2024
I have bunch of function orders written in text file.
For example text file contains
"move(4,5)
degrade(3)
plussum(6,7)"
and those are supposed to be function name and variables.
I want matlab to read that text file as it was written im .m file to call functions with variables
0 commentaires
Réponse acceptée
Plus de réponses (1)
Steven Lord
le 22 Avr 2024
If all the text in the file consists of valid MATLAB code and comments, just change the extension from .txt to .m.
Voir également
Catégories
En savoir plus sur Low-Level File I/O dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!