Azzera filtri
Azzera filtri

getting a number from a text file

2 visualizzazioni (ultimi 30 giorni)
Tariq Hammoudeh
Tariq Hammoudeh il 5 Dic 2021
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 Commenti
Walter Roberson
Walter Roberson il 5 Dic 2021
filename = 'CashReserve.txt');
R = readmatrix(filename);
R = R - 1234.56;
writematrix(R, filename);

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Data Import and Export in Help Center e File Exchange

Tag

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by