How to do an iteration with for loop

5 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by