Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

what is the solution of this error?

1 visualizzazione (ultimi 30 giorni)
Adham Shahin
Adham Shahin il 18 Mag 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Capture.JPG

Risposte (1)

Star Strider
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.

Community Treasure Hunt

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

Start Hunting!

Translated by