필터 지우기
필터 지우기

how to read this file in matlab?

조회 수: 7 (최근 30일)
sandy
sandy 2013년 9월 4일
hi.. i have a .tim extension files(nearly 150000)...which is float32 format.. i need to read that file using matlab and save in MS-excel format as output.is it possible..? help me with this..pl...whether it is similar like converting a binary format to ASCII format..? any easy code r function to reduce time consumption in converting ..?

답변 (2개)

ES
ES 2013년 9월 4일
You can read the .tim file using
FileObj=fopen(FileName);
FileData=textscan(FileObj, ...
'%s .....', 'delimiter', ',');
then modify your data if you need and then write them into xls by
xlswrite
or
using ActiveX COM object.
  댓글 수: 1
sandy
sandy 2013년 9월 5일
thanks...textscan is not working in my case..its not converting my file to ascii format..any alternate ways??

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


Walter Roberson
Walter Roberson 2013년 9월 5일
fread() can read float32 binary. Watch out for possible differences in byte order.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by