Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

A question to improve my loop of ODE

1 vue (au cours des 30 derniers jours)
Yuxing Zhang
Yuxing Zhang le 17 Oct 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have a question which asks to solve a ODE problem, and I have done the main part codes except one loop. It asks to set dt=2^-2,2^-3,2^-4.....2^-8 for t=[0:dt:5], and finally save the output E for each dt as E_list vector. But I can only do with one dt value, so I want to know how can I improve my codes.(codes are in the figure below)
  1 commentaire
Kevin Chng
Kevin Chng le 17 Oct 2018
change your for
for i=-2:-1:-8

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by