How to replace numeric coefficients with symbolic coefficients ?

syms x y
P=0.4*x+tanh(0.5*y)*7
how can I obtain an equation like this where every numeric coefficient is replaced by a symbolic coefficient ?
P=k1*x+tanh(k2*y)*k3

Answers (0)

Asked:

on 22 May 2013

Community Treasure Hunt

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

Start Hunting!