Why can't I open this .TRA file?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Peter Bu
el 24 de Sept. de 2018
Comentada: Peter Bu
el 24 de Sept. de 2018
Hello everyone,
I do not know why I cannot open this file in MatLab. Can anyone help me?
fileID = fopen('Test_Zugversuche_PDMS_Probe 10.8_charge3.TRA');
file_data = textscan(fileID,'%f64 %f64 %f64 %f64','Delimiter','; ','HeaderLines',8);
Error using textscan
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in Young_Mod (line 56)
file_data = textscan(fileID,'%f64 %f64 %f64 %f64','Delimiter','; ','HeaderLines',8);
0 comentarios
Respuesta aceptada
Walter Roberson
el 24 de Sept. de 2018
filename = 'Test_Zugversuche_PDMS_Probe 10.8_charge3.TRA';
[fileID, message] = fopen(filename, 'r');
if fileID < 0
error('Failed to open file "%s" because "%s"', filename, message);
end
My guess would be that the file is not in your current directory or anywhere along the MATLAB path.
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!