Why is the vector length 7?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Tallha Khan
il 31 Dic 2017
Risposto: Walter Roberson
il 31 Dic 2017
Learning Matlab through some simple plotting questions.
Why is the error message shown?, I don't see how Q3 has a vector length of 7. (See attached image)

0 Commenti
Risposta accettata
Walter Roberson
il 31 Dic 2017
What you coded as x inside your function is a vector of initial conditions, not (just) the current location on the x axis. Each place you referred to x without a subscript, you are getting the vector of length 3. You do that twice, and you have one element that does not use x, so you have an output which is 3+1+3 = 7 long.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Ordinary Differential Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!