I am writing a code to read a text file

조회 수: 2 (최근 30일)
Manikandan Veerappan
Manikandan Veerappan 2018년 4월 3일
댓글: Manikandan Veerappan 2018년 4월 4일
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
KSSV
KSSV 2018년 4월 3일
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 2018년 4월 4일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Amit
Amit 2018년 4월 4일
Use /r/n in your code
  댓글 수: 1
Manikandan Veerappan
Manikandan Veerappan 2018년 4월 4일
Thanks amit . got through in another way also.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by