error G0043 : Not implemented for complex matrices

Hi, I'm having trouble with the following program,

a1 = (profit[r1:r2,1] - fcost + dr.*opval[r1:r2,1])/parm[1];
a2 = ((a1*parm[1]) -scost)/parm[2];
p11[r1:r2,1]=cdfn(a1); 
p10[r1:r2,1]=cdfn(a2);
horyr[r1:r2,1]=b*ones(r,1);
plant[r1:r2,1]=plid ;
sim[r1:r2,1]=simnum ;

wich launches "error G0043 : Not implemented for complex matrices" referring to the bolded line. Is it about the normal cumulative distribution function module?

Thanks!

2 Answers



0



Error G0043: Not implemented for complex matrices pointing to this line of code:

p11[r1:r2,1]=cdfn(a1); 

indicates that a1 is a complex matrix. This is often, because a negative number was passed to sqrt earlier in the code. Check earlier assignments to: profit, fcost, dr, opval and parm to try and track down the cause of a1 becoming complex.

aptech

1,338


0



Ok! thanks

Your Answer


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy