Author Topic: Making function from symbolic expression in "MAT LAB"  (Read 470 times)

Offline alireza

  • Newbie
  • *
  • Posts: 2
  • Matlab Forum
    • View Profile
Making function from symbolic expression in "MAT LAB"
« on: January 03, 2010, 09:31:20 AM »
for example if:
syms beta
n1,n2,m,a=const.
u=sqrt(n2-beta^2);
w=sqrt(beta^2-n1);
a=tan(u)/w+tanh(w)/u;
b=tanh(u)/w;
f=(a+b)*cos(a*u+m*pi)+a-b*sin(a*u+m*pi); is the main expression.

how can i convert f to a function of beta?

Matlab and SimuLink Development Forum

Making function from symbolic expression in "MAT LAB"
« on: January 03, 2010, 09:31:20 AM »