Hi I have the following function;
function [EV,N,t,S] = EVjc300293(EV,N,t,S)
EV = log2((N^2)/t)-log2(S/100);
N = sqrt((2^(EV+log2(S/100)))*t);
t = (N^2)/(2^(EV+log2(S/100)));
S = 100/(2^(EV-log2((N^2)/t)));
I want to make it so that if a variable is set to zero in the function its value is calculated. I wish to do this using the if elseif statements listed. However when I run it it always calculates EV and not any other variable?