Clear Filters
Clear Filters

Importing data into MATLAB workspace with .RAW format

3 views (last 30 days)
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
filename = ['Sheringham_Phase2_A2_20140101_0000_0010.RAW']
% Read the unzipped file
A = dlmread(['c:/test/',filename], ';', 2, 0);
disp([filename,' NOT AVAILABLE'])
% delete unzipped file
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 Comment
Ashish on 30 Jun 2015
If there is an alternate command to "dlmread", that shall also be useful.

Sign in to comment.

Answers (1)

Nalini Vishnoi
Nalini Vishnoi on 2 Jul 2015
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.


Find more on Large Files and Big Data in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!