필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

A question to improve my loop of ODE

조회 수: 1 (최근 30일)
Yuxing Zhang
Yuxing Zhang 2018년 10월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Kevin Chng
Kevin Chng 2018년 10월 17일
change your for
for i=-2:-1:-8

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by