Matlab and SimuLink Development Forum
Matlab Tutorials
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Matlab Tutorials
Home
Help
Search
Media
Login
Register
Matlab and SimuLink Development Forum
»
Matlab
»
Matlab Programming
»
Topic:
Making function from symbolic expression in "MAT LAB"
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Making function from symbolic expression in "MAT LAB" (Read 470 times)
alireza
Newbie
Posts: 2
Matlab Forum
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?
Logged
Matlab and SimuLink Development Forum
Making function from symbolic expression in "MAT LAB"
«
on:
January 03, 2010, 09:31:20 AM »
Print
Pages: [
1
]
Go Up
« previous
next »
Matlab and SimuLink Development Forum
»
Matlab
»
Matlab Programming
»
Topic:
Making function from symbolic expression in "MAT LAB"