You need the explicit *
when doing multiplication. That is, you should have )*0.8
and not just )0.8
.
So your function should look like:
function Qx=functie5612(D)
Qx= D*(11-(0.1*D)/(0.28-D))*0.8
end
However, this is still incorrect (dimensions mismatch). If you are looking at elementwise multiplication of D
, you will need to use the .
operator. The code would look like:
Qx= D.*(11-(0.1*D)./(0.28-D))*0.8