I'm thinking of creating an if else statement with the following structure
if (mod(x,2)==0)
eq1
else
eq2
end
but am having trouble figuring out how to code the equations
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!