Originally Posted by
Ackbeet Try using dots everywhere, since you're wanting component-wise arithmetic. That is, try
p=12^2.*rl./(rl+2.5).^2;
Note: you actually don't need a dot for the first one, because that's a scalar. So you could probably do
p=12^2*rl./(rl+2.5).^2;