スタンドアロンアプリからのcsvファイルの読み込み・書き出し
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
初めて質問させていただきます。
sample_input.csvに入力した1つの整数値(n)に応じてn×nの魔方陣をファイル(sample_output.csv)に出力する関数"test"を作成しました。
----
function test
A=load('sample_input.csv');
output=magic(A);
csvwrite('sample_output.csv',output)
end
----
"sample_input.csv"には、整数値を1つ入力するようにしています(例:3)。
コマンドウインドウでtestと入力し、この関数が機能することは確認しております。
これをMATLAB Compilerでexeにして実行したところ、sample_input.csvの値を変更してもsample_output.csvの中身が変更されません。
ただし、sample_output.csvのファイル更新日時は、exeの実行タイミングに応じて更新されます。
なにが原因が教えていただけましたら幸いです。
よろしくお願いいたします。
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!