Error using textread:'textread' is not recommended.use 'testscan'instead
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hello,I am using the "textread" function to read this file:
image_files = textread(input_file,'%s');
but i have an error :
Error using textread (line 159)
File not found.
Error in show_results (line 20)
[image_files] = textread('input_file','%s');
and he said that's : 'textread' is not recommended.use 'testscan'instead. any help please .thanks
0 comentarios
Respuestas (1)
Ameer Hamza
el 28 de Abr. de 2018
This error is happening because of the variable input_file has wrong spelling of filename you want to open, or the file is not placed in the current directory. Use it like this
input_file = 'myFile.txt'; % specify full fine name, along with extension.
image_files = textread(input_file,'%s');
Also, make sure the file named 'myFile.txt' is present in the current directory.
2 comentarios
imen daboussi
el 28 de Abr. de 2018
Editada: Walter Roberson
el 28 de Abr. de 2018
Walter Roberson
el 28 de Abr. de 2018
is appearance_image_list.txt present in your working directory?
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!