How to load two text files and find the difference between them?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jamie Al
el 12 de Sept. de 2021
Respondida: Jamie Al
el 19 de Sept. de 2021
I have some text files with numerical data basically bunch of numbers that I am trying to compare between the two. I wanna subtract each number from the frist file from the second file to give me an idea of how "different" these two files or how far off the numbers are from each other.
I know how to load a text file, just not sure how to perform this subtraction. I will post a text file sample to see how big or the size of these data for your reference.
2 comentarios
Ive J
el 12 de Sept. de 2021
something like this?
data1 = readmatrix('data1.txt');
data2 = readmatrix('data2.txt');
d = data2 - data1; % or whatever you wanna to compare
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!