how to convert text file as it was written .m file to call functions?
2 ビュー (過去 30 日間)
古いコメントを表示
Melih Furkan SEN
2024 年 4 月 22 日
コメント済み: Melih Furkan SEN
2024 年 4 月 25 日
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 件のコメント
採用された回答
その他の回答 (1 件)
Steven Lord
2024 年 4 月 22 日
If all the text in the file consists of valid MATLAB code and comments, just change the extension from .txt to .m.
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!