Effacer les filtres
Effacer les filtres

HELP! Koch Square Error: A(I): index out of bounds; value 4 out of bound 3

4 vues (au cours des 30 derniers jours)
Mohanad Arafae
Mohanad Arafae le 14 Nov 2016
Réponse apportée : KSSV le 15 Nov 2016
I don't know why I'm getting this error. Can anyone please tell me the problem and how to fix it?

Réponses (1)

KSSV
KSSV le 15 Nov 2016
Check this line in your code:
v=[newpointsx(4);newpointsy(4)]-[newpointsx(2);newpointsy(2)]
you have defined newpointsx(1),newpointsx(2) and newpointsx(3) but you have not defined newpointsx(4) and you are trying to call/ use it in v. Same thing with newpointsy, so the error is popping out. Define newpointsx(4) and newpointsy(4) before/ above v.

Catégories

En savoir plus sur Fractals dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by