How to Write y(0)=1?
5 次查看(过去 30 天)
显示 更早的评论
I want to write y(0)=1
but it shows error and I want to change it to
y(θ)=1
how to write θ in place of 0?
4 个评论
Ameer Hamza
2020-12-4
In MATLAB array starts at index 1, so y(1) is the correct way to set initial condition.
"how come others 0 is displayed as θ"
Can you show where it is shown as theta?
回答(1 个)
Ameer Hamza
2020-12-3
If you just want to display it, then you can use following code
syms J(theta)
J(theta)=1
This requires the Symbolic toolbox.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!