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 comentarios

Ameer Hamza
Ameer Hamza el 3 de Dic. de 2020
Why do you want to write this? What is the context?
Sayali Jadhav
Sayali Jadhav el 4 de Dic. de 2020
For Solving Eulers Explicit method.
What to write it as intial value.
I can start with y(1) as intial value but how come others 0 is displayed as θ?
Sayali Jadhav
Sayali Jadhav el 4 de Dic. de 2020
Thank You so much for responding
Ameer Hamza
Ameer Hamza el 4 de Dic. de 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?

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 3 de Dic. de 2020

0 votos

If you just want to display it, then you can use following code
syms J(theta)
J(theta)=1
This requires the Symbolic toolbox.

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Dic. de 2020

Comentada:

el 4 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by