フィルターのクリア

getting a number from a text file

2 ビュー (過去 30 日間)
Tariq Hammoudeh
Tariq Hammoudeh 2021 年 12 月 5 日
コメント済み: Walter Roberson 2021 年 12 月 5 日
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
Star Strider 2021 年 12 月 5 日
Walter Roberson
Walter Roberson 2021 年 12 月 5 日
filename = 'CashReserve.txt');
R = readmatrix(filename);
R = R - 1234.56;
writematrix(R, filename);

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by