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.
0
Ok! thanks
Your Answer
2 Answers
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.
Ok! thanks