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 ianlh  
#1 Posted : 01 December 2021 20:29:34(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi All,

I am trying to figure out how to do what probably is an easy task, but I just "cant see the woods for the trees".

I have the variables as shown, the first two are factors that relate to the next two variables that are the upper and lower bounds for the first set of variables, the final variable is the actual height that the first 4 variables are to be used to obtain an interpolated value. Note that the number of rows can vary depending on the initial values, but all 5 variables will have the same number of rows.

On the LHS is the logic per row of each, the first IF is used to stop the divide by zero that will be found by the ELSE, when both rows are the same, I have attempted to do this in the grey box, but don't get the right (expected) answer. This should work for any number of rows in the variables

Can anyone please point me in the right direction?
wind1.JPG
wind2.JPG

Wind-test.sm (259kb) downloaded 9 time(s).

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

Offline PompelmoTell  
#2 Posted : 01 December 2021 21:16:54(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)
A bit of confusion with indexes
wind-test_s.sm (12kb) downloaded 23 time(s).
sergio
Offline ianlh  
#3 Posted : 01 December 2021 21:47:20(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Originally Posted by: PompelmoTell Go to Quoted Post
A bit of confusion with indexes
wind-test_s.sm (12kb) downloaded 23 time(s).
sergio


So close, thank you. I will get all this programming one day!

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.