Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
test111

Junior Member
Registered:
Posts: 5
Reply with quote  #1 
Hi,
I'm trying to read .bhv2 files using mlread(). But it popped up an error "error using fread, out of memory" which never appeared before when I using mlread(). How should I deal with this problem? the details of the error are showed as below:


Error in mlbhv2/read_variable (line 256)
name = fread(obj.fid,[1 lname],'char*1=>char');
Error in mlbhv2/read_variable (line 266)
for n=1:nfield, [a,b] = read_variable(obj); val(m).(b) = a; end %#ok

Error in mlbhv2/read_variable (line 266)
for n=1:nfield, [a,b] = read_variable(obj); val(m).(b) = a; end %#ok

Error in mlbhv2/read_variable (line 266)
for n=1:nfield, [a,b] = read_variable(obj); val(m).(b) = a; end %#ok

Error in mlbhv2/read_trial (line 141)
[a,b] = read_variable(obj);

Error in mlread (line 27)
data = fid.read_trial();

0
Jaewon

Administrator
Registered:
Posts: 971
Reply with quote  #2 
The structure of BHV2 is open, so, with a little MATLAB debugging technique, I guess you can figure out what the issue is, but, if you can't, please send me the data file. I will take a look.

https://monkeylogic.nimh.nih.gov/docs_BHV2BinaryStructure.html
0
Jaewon

Administrator
Registered:
Posts: 971
Reply with quote  #3 
Hi test111,

Some of your stimuli (109.jpg & 202.jpg) have characters that MATLAB cannot display with your current encoding type in their meta data. I kind of fixed this on the ML side, so please update your NIMH ML.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.