How to do an iteration with for loop

4 visualizaciones (últimos 30 días)
Jenjen Ahmad Zaeni
Jenjen Ahmad Zaeni el 3 de Mayo de 2021
Editada: Jenjen Ahmad Zaeni el 3 de Mayo de 2021
Hello everyone. I have a code for doing a decoding iteration. I have problem with looping, and i've attached the .m file. Sorry for bad explanation, but i want the final value of variable, lets say it's
Lj = -41.0644 -5.4258 0 -39.2725 0
0 0 -40.9465 7.0998 0
0 -7.0998 0 0 40.9465
-11.1200 0 -39.2725 0 -5.4258
to be processed again for n times like the commands above it. So it's like the value of Lj is processed again like the value of Lb, which is the top variable of the loop. When i put ii=1:n, its value remain the same. I understand my loop is not really right. What should i fix to make it works? Thank you very much.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by