How can i display the function name on the graph in mat-labCode:x=-10:.1:10; y=sin(x); plot(x,y);
You can use something like:
or you can do some nicer things such as:Code:title sin(x)
Code:close all x=-10:.1:10; y=sin(x/2).^(1/2); plot(x,y); xlabel x ylabel y title('$$Sin\left(\frac{x}{2}\right)^{1/2}$$','Interpreter','latex')
Regards Elbarto