Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline ndtma  
#1 Posted : 10 September 2023 14:54:56(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 348
Man
Sri Lanka
Location: Colombo

Was thanked: 125 time(s) in 82 post(s)
Hi,
I came across a problem in the use of findrows() function when applied to a nested array.
The nested array is the result of a Slope Stability Analysis example.
Sufficient explanatory notes included.
However, I was able to get required values by some manipulations as shown.

Is there a better method ?

Findrows Problem.sm (20kb) downloaded 6 time(s).

Findrows Problem.png

Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline PompelmoTell  
#2 Posted : 10 September 2023 21:16:44(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 319
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
using the deNest snippet (found in the tools).

Findrows Problem_deNest.sm (21kb) downloaded 8 time(s).

sergio
thanks 1 user thanked PompelmoTell for this useful post.
on 11/09/2023(UTC)
Offline mkraska  
#3 Posted : 10 September 2023 21:24:29(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,987
Germany

Was thanked: 1124 time(s) in 721 post(s)
I'd perhaps just join the columns by augment() and then apply findrows().

Findrows Problem_Kr.sm (24kb) downloaded 5 time(s).
2023-09-10 20_19_16-SMath Solver - [Findrows Problem.sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 10/09/2023(UTC),  on 11/09/2023(UTC)
Offline ndtma  
#4 Posted : 11 September 2023 05:05:09(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 348
Man
Sri Lanka
Location: Colombo

Was thanked: 125 time(s) in 82 post(s)
Hello Martin and sergio,

Thank you both for the helpful replies Clap
Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
Offline ndtma  
#5 Posted : 11 September 2023 14:03:17(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 348
Man
Sri Lanka
Location: Colombo

Was thanked: 125 time(s) in 82 post(s)
Hi,

A revised program, based on mkraska's solution.

Findrows Solved.sm (16kb) downloaded 9 time(s).

Findrows Solved.png

Edited by user 11 September 2023 14:06:08(UTC)  | Reason: Not specified

Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
thanks 1 user thanked ndtma for this useful post.
on 11/09/2023(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.