Skip to main content
10-Marble
July 19, 2026
Question

problems with the for loop and return

  • July 19, 2026
  • 1 reply
  • 39 views

I need to evaluate anchored walls, according to FHWA Circular 10, for various strata, but I've had problems with the definition of a vector i. This new version of Circular 11 changes the definition of a vector, so could you help me with this problem?


Regards.

For loop and return for a vector i

 

1 reply

23-Emerald IV
July 20, 2026

Your function idx(z) has a parameter z, but redefines it internally to a row vector [1 2 3]. So the parameter is never used.

Then in the for loop you try to compare that z with elements of z.bot. Are the elements of z.bot row vectors of  3 elements each?

Success!

Luc