I am trying to feed 2 same length vectors into the function I have made below, I want it to return an output vector of the same length
function stagpres1 = stagpres(deltaP, flowarea)
gmpercm2 = deltaP * 0.010197;
v2 = gmpercm2/(flowarea / 317.75);
Velocity = sqrt(v2);
stagpres1 = (1/2) * 1 * (Velocity.^2);
However, when I try to run it, it returns the error "not enough input arguments."