equn='Numerator:';eqpn=inputdlg(equn);eqn=str2sym(eqpn);equd='Denominator:';eqpd=inputdlg(equd);eqd=str2sym(eqpd);syms(symvar(eq));varprompt='With Respect to Variable:';var=inputdlg(varprompt);frac=(eqn)/(eqd);k=partfrac(str2sym(frac),var);disp(k)
Error using str2sym (line 46)
Argument must be string, character vector, or cell
array of character vectors.
Error in untitled10 (line 13)
k=partfrac(str2sym(frac),var);
Best Answer