Why is my fplot not working?

11 views (last 30 days)
Kyle Donk
Kyle Donk on 1 Feb 2020
Commented: Star Strider on 1 Feb 2020
My fplot is not working in my code. A few minutes ago, the code was plotting the graph just fine, but now it isn't. I can't figure out what is wrong. Matlab keeps saying that "Second argument must be a scalar or vector of unique symbolic variables."
%Symbolically find the roots of the following equation using 'solve'
syms x y(x)
%Find what y equals when x=0
%Graph the equation on the interval [-10,10]
Star Strider
Star Strider on 1 Feb 2020
That’s the reason I always use figure to create a new one for each plot. Otherwise, MATLAB uses the existing axes.

Sign in to comment.

Answers (0)


Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!