Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
what is the solution of this error?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Risposte (1)
Star Strider
il 18 Mag 2019
This assignment:
t(1,:) = 20;
creates a (1x1) value for ‘t’, so in this assignment:
t(j+1) = 60*t(j,2)-59*t(j,1)+300;
‘t(j,2)’ does not exist.
One possible solution is to preallocate ‘t’ as:
t = zeros(100,2);
t(1,:) = 20;
before the loop.
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!