My guess is you did not actually save that function as an m-file on your search path. This is why MATLAB could not find the function.
Another possibility is that you saved it using the invalid keyword funcion, missspelling the work function. That will probably cause the code to fail too.
funcion y = funct(x)
Instead, I suggest you simply learn to use function handles, of this form:
funct = @(x) 7.*sin(2.*pi.*x).^2;
A virtue of a function handle as written there, is you need never even save an m-file.
However, as you can see what happens when we try to use fzero, it fails.
Exiting fzero: aborting search for an interval containing a sign change
because NaN or Inf function value encountered during search.
(Function value at -2.87631e+307 is NaN.)
Check function or try again with a different starting value.
This is because fzero absolutely needs to see a zero crossing. And since the square of the sine function is ALWAYS non-negative, then fzero must fail.
For this reason, Stephan is correct (and why I gave a +1 there) in that fzero will not work. However, a better choice than either fzero of fminbnd is a tool like fsolve.
[x,fval,exitflag] = fsolve(funct,1.25)
fsolve completed because the vector of function values is near zero
as measured by the value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
As you can see, it was quite successful, whereas, on a very similar function, perhaps as close as:
funct = @(x) 7.*sin(2.*pi.*x).^2 - 0.1;
fminbnd will clearly give the wrong solution, because the minimum and the zero do not occur at the same place.
Note that fsolve will handle both problems with no issues.