Access to a file when running the program
古いコメントを表示
Hello, i have to files .m in the same folder. One is used to run the main program and the other is used just to put the information input for the program.
p.e:
one file is the main.m and the other is info.m
info.m is similiar to this:
Volume_inicial = 900000000; Volume_final = 900000000; Volume_min = 800000000; Volume_max = 1000000000; Caudal_turb_max = 400; Caudal_bomb_max = 400;
Now, in the main.m i wanna be able to pick this data. How can i pick just Volume_inicial p.e?
採用された回答
その他の回答 (1 件)
Vishal Rane
2012 年 12 月 14 日
0 投票
You could simply run the other file, thus loading its contents in the workspace and use any variables you need.
1 件のコメント
André Pacheco
2012 年 12 月 14 日
編集済み: André Pacheco
2012 年 12 月 14 日
カテゴリ
ヘルプ センター および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!