# plotting a symbolic function

11 views (last 30 days)
mogin jerry on 20 Oct 2020
Edited: Rena Berman on 7 May 2021
i need to create symbolic function f(x) equalling ((3*x-5)/(x-3))
then make symbolic equation, invEqn, by setting x equal to f(y).
solve function to solve invEqn for y and use expression to define the symbolic function finv(x)
Plot f and f^-1 on the same axes.using fplot.
can someone write me a code not sure where to start
##### 1 CommentShowHide None
Rik on 21 Oct 2020
Question posted by mogin jerry restored from Google cache.

Cris LaPierre on 20 Oct 2020
Edited: Cris LaPierre on 20 Oct 2020
Sounds like a homework assignment, so I won't provide an answer, but take a look at the fplot function documentation page. One of the examples on that page can be used to get your started on your assignment.
##### 2 CommentsShowHide 1 older comment
Rik on 21 Oct 2020
Deleted comment:
done this so far:
syms y x f(x) finv(x)
f(x) = ((3*x-5)/(x-3)) ;
Eqn = f(x)==((3*x-5)/(x-3));
invEqn = x == f(x);
finv(x)=invEqn;
fplot(x,f(x))
fplot(x,finv(x))
but its not plotting the graphs opens a blank graph and keeps giving me errors