MATLAB: Fzero of two functions subtracted

MATLAB

I am writing a code for calculating fzero of the subtraction of two functions. Just take a very simple example
fun1 = @(x) x^3;
fun2 = @(x) x^2;
fun = @(x)fun1(x) – fun2(x);
fzero(@(x)fun(x),1)
Always errors were shown, what should be the correct syntax? Could you help me please?

Best Answer

fzero(fun,1);
Best wishes
Torsten.