I'm new to Matlaab and I'm getting this error whitout explanation

조회 수: 1 (최근 30일)
Vasco Araújo
Vasco Araújo 2018년 12월 19일
댓글: madhan ravi 2018년 12월 19일
This is my first program in Matlab and when I run it I get this error2.PNG
The program is the following(euler's method)
1.PNG
Why is this happening?

채택된 답변

madhan ravi
madhan ravi 2018년 12월 19일
편집: madhan ravi 2018년 12월 19일
It’s clear that q has 50 elements but you run a loop till 101 so better is to populate q with 101 elements as such
q=linspace(q(1),q(end),numel(x))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by