Totally new at MatLab and I need it to answer this homework question for my class. I'm trying to see when this equation (mu) will equal a certain value (sae30mu) while decreasing x so that I can find the correct value for x. However, when it prints x, I get a negative number. I cannot tell why this code won't work, as it appears (to me) that it should just spit out the answer.
x = 1.0;
mu = ((sae10mu)^x)*((sae50mu)^(1-x));
while (mu ~= sae30mu & x >= 0)
x = x - 0.01;
mu = ((sae10mu)^x)*((sae50mu)^(1-x));
end
x