MKDA read database errors

17 views
Skip to first unread message

aisli...@gmail.com

unread,
Nov 29, 2016, 9:31:27 AM11/29/16
to WagerlabTools
Hi all,

I can't seem to get the database to read properly. I've tried various combinations of formats, and have tried to with the example database given on the wiki page, but keep getting the same errors back:

>> read_database
Warning: File: read_database.m Line: 66 Column: 11

The expression on this line will generate an error when executed. The error will be: Attempt to reference field of non-structure array.

Error using textread (line 166)
File not found.

Error in read_database (line 57)
a = textread(dbname,'%s%*[^\n]','delimiter','\t');


Any ideas?

Thanks,

Aisling O

aisli...@gmail.com

unread,
Nov 29, 2016, 9:32:25 AM11/29/16
to WagerlabTools, aisli...@gmail.com

*I've also installed the Core_Tools toolbox

Stephan Geuter

unread,
Nov 29, 2016, 9:41:27 AM11/29/16
to aisli...@gmail.com, WagerlabTools
Hi,

The error says 'file not found'. You should check if the file you want to read in is where the variable (dbname) holding the path says it would be.

Best,
Stephan

From: aisli...@gmail.com
Sent: ‎11/‎29/‎2016 9:33
To: WagerlabTools
Cc: aisli...@gmail.com
Subject: [WagerlabTools] Re: MKDA read database errors

--
You received this message because you are subscribed to the Google Groups "WagerlabTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wagerlabtool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aisling O'Neill

unread,
Nov 29, 2016, 10:26:23 AM11/29/16
to Stephan Geuter, WagerlabTools
Hi Stephan,

Thanks for your response - you were right, I hadn't assigned the correct path.

it's now kicking back the following errors:

Error using fullfile (line 93)
An unknown error occurred in FULLFILE while constructing the file specification.

Error in textread (line 158)
if (noargname(@exist,varargin{1}) ~= 2 || noargname(@exist,fullfile(cd,varargin{1})) ~= 2) ...

Error in read_database (line 57)
a = textread(dbname,'%s%*[^\n]','delimiter','\t');

Attempt to reference field of non-structure array.



I'm a matlab novice, so my apologies if this is very basic!

Thanks in advance,

Aisling


To unsubscribe from this group and stop receiving emails from it, send an email to wagerlabtools+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages