plot piecewise 3D function
2 次查看(过去 30 天)
显示 更早的评论
Greetings. I need to plot a piecewise 3D function. I'm familiar with the 3D plot commands, but I seem to be having some difficulty using the proper syntax to define the function.
The function itself is:
n(a,t) = B(t-a)*exp(-int(mu(i),i=0..a)) if a <= t
n(a,t) = n(a-t,0)*exp(-int(mu(i),i=a-t..t)) if a > t
n(0,t) = int(B(a)n(a,t),a=0..inf)
This is the solution to the simple McKendrick von Foerster PDE.
My question is simply: how do I input the above piecewise function to properly define n in Matlab?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Boundary Conditions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!