Skip to main content
10-Marble
Jul 19, 2026 6:05 AM UTC
Question

problems with the for loop and return

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 V
Jul 20, 2026 10:04 AM UTC

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

Translate