Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difficulty with Defining a Function - Mathcad 15

Status
Not open for further replies.

sticksandtriangles

Structural
Joined
Apr 7, 2015
Messages
500
Location
US
I am struggling with defining a function in mathcad 15 and was looking for some help.

I have an input vector of values with a corresponding region upon which this value acts.
If (2) or more of these input vector values overlap on a certain region, the values need to be summed.

An example best describes my situation.

image_one_anhwxt.png


In my example above, the first value of 10 acts over a region from 0 - 10.
The second value of 5, acts over a region of 5 - 15.

The desired graph looks like the following:
image_2_kr81zp.png


It feels like a I need to almost make a while loop to check all values within the region acting matrix to make this work, but I've been struggling to write the appropriate function.

I've attached my sample file as well.




S&T
 
Solved this guy... sometimes it helps to just type things out I guess [bigsmile]

image_3_wqexfk.png




S&T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top