Can anyone tell me why I am getting "Unrecognized function or variable 'a'." in this code?
Show older comments
g=@(x) atan(4*x);
d=@(x) 4/(16*x^2 + 1);
h=1;
for i= 0:h:10
if (g(i)*g(i+h)<0)
a=(i);
b=(i+h);
break;
end
end
x0 = (a+b)/2;
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!