hello can you please help I'm getting this errorIndex in position 2 exceeds array bounds (must not exceed 1). Error in BetaNewmark_MDOF (line 21) xd(:,i+1)=xd(:,i)+(1-b)*dt*x
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/726914/image.png)
0 Commenti
Risposte (2)
darova
il 1 Set 2021
You are trying to access allements that don't exist. Try this
% xdd(:,i), xdd(:,i+1) % WRONG
xdd(i), xdd(i+1) % GOOD
0 Commenti
Walter Roberson
il 1 Set 2021
you only assign to a single column of xdd but you try to access up to column that is one more than the number of times you have
0 Commenti
Vedere anche
Categorie
Scopri di più su Matrix Indexing 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!