Help with knowing what kind of vector im using
2 views (last 30 days)
Show older comments
Commented: Lavorizia Vaughn on 13 Nov 2021
could someone tell me what th2s=[th2s,y(2)] means?
for h=hs %for all the stepsizes
y=[th1,th2,w1,w2]; we have this vetir which has the values
k2=h*fpend(y + k1/2);
k3=h*fpend(y + k2/2);
k4= h*fpend(y + k3);
y = y + (k1 + 2*k2 + 2*k3 + k4) / 6;
Cris LaPierre on 13 Nov 2021
It is appending y(2) to the end of the vector th2s at the end of each h loop.
th2s = [th2s,a]
More Answers (0)
Find more on Communications Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!