简体   繁体   English

MATLAB中的方程式解释

[英]Equation Interpretation In MATLAB

would like to ask for help on how to interpret this equation(Differential) in Matlab Code 想寻求有关如何在Matlab代码中解释此方程式(微分)的帮助

dC/dt=PC+K2*I-μc*C 

I have looked at many tutorials on to solve differential equations in matlab and none have been clear to me, according to what i have looked up You can Liken dC/dT to dy/dx ie. 我看过很多关于如何在matlab中求解微分方程的教程,根据我所查到的内容,对我来说还不清楚。

dsolve('Dy = PC+K2*I-μc*C','x')

In which - PC,K2,I,μc,C. 其中-PC,K2,I,μc,C。 are all variables 都是变量

Q1. Q1。 Am i on the right path? 我在正确的道路上吗?

Q2. Q2。 Is it possible for me to view the steps(equation) carried out in order to get the answer and how? 我是否可以查看为了获得答案而执行的步骤(方程式)以及如何执行?

Thanks. 谢谢。

To use dsolve on your system start by looking at some examples in the documentation 要在系统上使用dsolve,请先查看文档中的一些示例

For your system a solution would be 对于您的系统,解决方案是

syms PC K2 muc I C(t)
dsolve(diff(C) == PC + K2*I - muc*C)

I don't think you can do that in Matlab (it's strengths are numeric calculations and not symbolic). 我认为您无法在Matlab中做到这一点(它的优势是数字计算而不是符号计算)。

If i were to give a tip i would head over to wolframalpha (see the examples). 如果我要给小费,我会去Wolframalpha (请参见示例)。 It can show step by step solutions to simple equations. 它可以逐步显示简单方程的解。 I suppose you would find similar features in Mathematica. 我想您会在Mathematica中找到类似的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM