![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281449/image.png)
Symbolic Toolbox Exponential Equations
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi Everyone
Getting started with symbolic tool box and live editor.
Trying to enter the below Wiebe Function equation using symbolic toolbox so i can find the derivative and build up the governing equations for the system.
However, getting stuck on simply entering the equation with the syms function, doh, as the e term has (t/td) to the power m+1, can you help with how i actually code this in the live editor so i can use and later solve for dx![Wiebe Function Equation](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281447/Wiebe%20Function%20Equation.jpeg)
![Wiebe Function Equation](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281447/Wiebe%20Function%20Equation.jpeg)
Thanks everyone.;-)
My attempt at creating x
syms x exp t t_d m
t_d = sym('t_d')
x = 1 - exp(-6.908*(t/t_d))^(m+1)
0 Kommentare
Antworten (1)
Ameer Hamza
am 2 Apr. 2020
Bearbeitet: Ameer Hamza
am 2 Apr. 2020
exp is a built-in function. Don't define it as a variable.
syms x t t_d m
x = 1 - exp(-6.908*(t/t_d)^(m+1));
dxdt = diff(x,t)
Result
dxdt =
(1727*exp(-(1727*(t/t_d)^(m + 1))/250)*(t/t_d)^m*(m + 1))/(250*t_d)
If you use live script, it will also render the equation to be displayed properly
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281449/image.png)
6 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!