%Using fplot for plotting function variable = [-10 10]; %Pass the name of the function with '@' and interval. fplot(@fct,variable);