How to Write y(0)=1?
古いコメントを表示
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 月 3 日
Why do you want to write this? What is the context?
Sayali Jadhav
2020 年 12 月 4 日
Sayali Jadhav
2020 年 12 月 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.
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!