Hi! I built this code:
if A1 <0D = 0.8;elseif A2 <0D = 0.7;elseif A3 <0D = 0.6;elseif A4 <0D = 0.5;elseD = 0.3;end
My problem is that A1, A2, A3 and A4 are 100000×1 matrixes from Monte Carlo Simulations so I would expect D to be 100000×1 too. Instead I get a flat value like 0.8. What I am doing wrong? The strange part is that it works when test with a 5×1 matrix. Thanks a lot.