ASKER
hf = @(x) -4*(x + 2).*(x - 18);
rzeros(1) = fzero( hf, -20 );
rzeros(2) = fzero( hf, +20 );
rzeros
But fzero gives errors if there is no zero crossing.
The Math / Science topic primarily includes discussions of mathematics, physics, statistics and economic analysis, but also biology, chemistry and other sciences.
TRUSTED BY
You don't need Matlab to solve it.
h(x) = 0 for x= -2 and x= 18