getting a number from a text file
2 ビュー (過去 30 日間)
古いコメントを表示
I have txt file with 1 number inside only, nothing else.
is there a way to get that number as a variable so that i can use an if statement on it, more specifically if an inputted number is greater than the number in the txt file.
7 件のコメント
Star Strider
2021 年 12 月 5 日
This just keeps getting more strange !
And keep watching for more yet to come!
Walter Roberson
2021 年 12 月 5 日
filename = 'CashReserve.txt');
R = readmatrix(filename);
R = R - 1234.56;
writematrix(R, filename);
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Export についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!