solve differential equation with matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How can I solve the following differential equation with MATRIX?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333120/image.png)
where T is the unknown:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333123/image.png)
P is known (I know P4, P5 and P6):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333126/image.png)
R^-1=G is known (I know all its terms):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333129/image.png)
C is known (I know all its terms):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333132/image.png)
0 Commenti
Risposte (1)
Bjorn Gustavsson
il 17 Lug 2020
Yes your system of ODEs are on the form (with singular mass-matrix, C) that ode23t and ode15s can handle, at least according to the help and documentation.
HTH
4 Commenti
Bjorn Gustavsson
il 17 Lug 2020
Start by looking at the odeexamples - that gui lets you run and inspect a good number of examples with different combinations of the ODE-integrators' capabilities. You can also look at the source code of them, which should illustrate how to write the code.
In this example you should save the first code-snippet to a .m-file with the name fcn_dTdt.m and then put the setup and ode15s call either in a script or on the command-line.
Vedere anche
Categorie
Scopri di più su Ordinary Differential Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!