I don't know what y sub n and z sub n are. Normally I'd think they may be an array element like y(n) and z(n) - the n'th element of vectors y and z. However taking the min of a single array element doesn't make much sense so now I'm going to assume yn is a vector and zn is a vector, and znm1 is another vector, like (possibly) they're the n'th and (n-1)st columns of a 2D array or something. So in that case, the equation would be
Value = min(yn) – (min(yn)-min(ynm1)) .* (Zn – 1.6) ./ (Zn-Znm1);
Or, breaking it down to simplify it:
term1 = min(yn)-min(ynm1);
numerator = Zn – 1.6;
denominator = Zn-Znm1;
Value = min(yn) – term1 .* numerator ./ denominator;
Note, all vectors yn, ynm1, Zn, and Znm1 must be the same size and shape, like all 1-by-100 or whatever.
Best Answer