getting a number from a text file

3 visualizaciones (últimos 30 días)
Tariq Hammoudeh
Tariq Hammoudeh el 5 de Dic. de 2021
Comentada: Walter Roberson el 5 de Dic. de 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 comentarios
Walter Roberson
Walter Roberson el 5 de Dic. de 2021
filename = 'CashReserve.txt');
R = readmatrix(filename);
R = R - 1234.56;
writematrix(R, filename);

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by