F1 =
clear all ; close all; close ; clear
syms s
Expr = (sin(s));
F1 = int(Expr)
syms n
expr2 = 1/n ;
F2 = int(expr2)
total = F2 == F1
final = isolate(total,n)
want2plot = subs(final,s,0:0.1:5)
figure
fplot(rhs(final), [0 5])
grid
xlabel('s')
ylabel('n')
title('‘fplot’')
Alternatively —
nfcn = matlabFunction(rhs(final))
figure
plot((0:0.1:5), nfcn(0:0.1:5))
grid
xlabel('s')
ylabel('n')
title('‘matlabFunction’')
figure
plot(0:0.1:5, double(rhs(want2plot)))
grid
xlabel('s')
ylabel('n')
title('‘want2plot’')
EDIT — Added the ‘Alternatively —’ section.
EDIT — (16 Apr 2024 at 12:33)
Added independent variable to ‘want2plot’ and added titles.
.