필터 지우기
필터 지우기

Importing data into MATLAB workspace with .RAW format

조회 수: 4 (최근 30일)
Ashish
Ashish 2015년 6월 30일
답변: Nalini Vishnoi 2015년 7월 2일
I have a file (attached with the question) which is zipped and contains data. However, the file is in .raw format and I am not able to extract the data from it in the matlab work space using the following code:
% unzip the file
unzip('Test.RAW.zip',['c:/test'])
filename = ['Sheringham_Phase2_A2_20140101_0000_0010.RAW']
% Read the unzipped file
try
A = dlmread(['c:/test/',filename], ';', 2, 0);
catch
disp([filename,' NOT AVAILABLE'])
continue
end
% delete unzipped file
delete(['c:/test/',filename])
The error I get while reading the file is-
Mismatch between file and format string. Trouble reading 'Numeric' field from file (row number 60, field number 1) ==>
A way to solve this problem would be great?
  댓글 수: 1
Ashish
Ashish 2015년 6월 30일
If there is an alternate command to "dlmread", that shall also be useful.

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

답변 (1개)

Nalini Vishnoi
Nalini Vishnoi 2015년 7월 2일
Hi Ashish,
I understand that you would like to read RAW files in MATLAB. You will find the following links useful:
There is also a File Exchange submission (find link below) which implements RAW Camera file Reader:
I hope the above helps.
Nalini

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by