How to Write y(0)=1?

조회 수: 2 (최근 30일)
Sayali Jadhav
Sayali Jadhav 2020년 12월 3일
댓글: Ameer Hamza 2020년 12월 4일
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
Sayali Jadhav
Sayali Jadhav 2020년 12월 4일
Thank You so much for responding
Ameer Hamza
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
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.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by