Welcome! Log In Create A New Profile

Advanced

Error in user defined conditions

Posted by akashrajgp 
Error in user defined conditions
September 09, 2021 06:16AM
Hi!
I wrote a user defined conditions file to stay in the same condition or switch to a different condition with some probability 'z'. But every time I try to implement the function Matlab shows an error like this:

Error using mltrialrecord/new_trial (line 184)
Condition #0 doesn't exist

I don't know how to resolve this, I am attaching the user defined conditions file for your reference. Thank you!
Attachments:
open | download - single_sudocond.m (319 bytes)
Re: Error in user defined conditions
September 09, 2021 08:46AM
Learn how to debug MATLAB scripts and find out why the function returns 0.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.