Problem in datastrm.m or getfield.m

View previous topic View next topic Go down

Problem in datastrm.m or getfield.m

Post  mcs on Wed Jun 11, 2008 10:13 pm

Dear Sir

Some problem message happened in Matlab, while I am trying to access the .mcd data.
------------------------------------------------------------------

??? Maximum recursion limit of 1000 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can crash MATLAB and/or your computer.

Error in ==> U:\sunMainz65\getfield.m
On line 24 ==> field=getfield(ds, name);

??? Error while evaluating uicontrol CreateFcn.
-------------------------------------------------------------------
Could you help me to solve this problem? And if you need my program, please let me know.

Thanks for you help again.

Sincerely

Jyh-Jang Sun
sunj@uni-mainz.de

mcs

Posts : 518
Join date : 2008-06-10

View user profile

Back to top Go down

Re: Problem in datastrm.m or getfield.m

Post  mcs on Wed Jun 11, 2008 10:13 pm

Dear Jyh-Jang,

you can use the getfield function only in conjunction with certain literals. For example:

>> a = datastrm('c:\tmp\SpikeTest.mcd')

>> x = getfield(a,'filename')

x =

c:\tmp\SpikeTest.mcd

>> x = getfield(a,'StreamNames')

x =

'Spikes 2'
'Electrode Raw Data'
'Spikes 1'

>> x = getfield(a,'StreamCount')

x =

3

What is name in your function call field=getfield(ds, name) ?

Sincerely

Gerald
Multi Channel Systems

mcs

Posts : 518
Join date : 2008-06-10

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum