getting a number from a text file
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Star Strider
am 5 Dez. 2021
This just keeps getting more strange !
And keep watching for more yet to come!
Walter Roberson
am 5 Dez. 2021
filename = 'CashReserve.txt');
R = readmatrix(filename);
R = R - 1234.56;
writematrix(R, filename);
Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files 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!