I am writing a code to read a text file

2 visualizaciones (últimos 30 días)
Manikandan Veerappan
Manikandan Veerappan el 3 de Abr. de 2018
Comentada: Manikandan Veerappan el 4 de Abr. de 2018
I am writing code to read a text file. while reading as column, there are no issues. but i could not read the text file row-wise. while working with verilog, i get the output text file as row format. so, how to read the test file row wise
thanks in advance
  2 comentarios
KSSV
KSSV el 3 de Abr. de 2018
How is the text file? Only numbers or got text too? How you are reading it. Read about load, importdata, textscan.
Manikandan Veerappan
Manikandan Veerappan el 4 de Abr. de 2018
well, the text file is fact the image data converted to textfile. it contains only hex data. i am converting image to text file (containing hex data), then reading thro. verilog. now i get back the text file(containing hex values). I want to read back this text file into matlab for retriveing image. i have attached a text file for your reference

Iniciar sesión para comentar.

Respuesta aceptada

Amit
Amit el 4 de Abr. de 2018
Use /r/n in your code

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by