How to Write y(0)=1?
Ältere Kommentare anzeigen
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 Kommentare
Ameer Hamza
am 3 Dez. 2020
Why do you want to write this? What is the context?
Sayali Jadhav
am 4 Dez. 2020
Sayali Jadhav
am 4 Dez. 2020
Ameer Hamza
am 4 Dez. 2020
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?
Antworten (1)
Ameer Hamza
am 3 Dez. 2020
If you just want to display it, then you can use following code
syms J(theta)
J(theta)=1
This requires the Symbolic toolbox.
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!