Iterate over matrix?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Iterate over matrix?
In the attached MathCAD 3.1 worksheet and screenshot I'm attempting to determine the left reaction force for three beams of the same length with different loadings. The equation works for one beam but I'd like it to work for all 3 (or more). Each row of the pp matrix gives the 2 loads on each of the 3 beams. The y vector gives the load application point on each beam (it's the same for each beam).
My question is, how do I iterate the equation for R over the three beams such that the resultant is a [3x1] vector giving the R (reaction) for each beam?
Solved! Go to Solution.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not sure I manipulated your equation correctly (show me a one-beam example)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can't multiply a 3 x 2 matrix (pp) with a 1 x 2 matrix (l.beam - y). It has to be a 2 x 1 matrix.
Simply don't transpose y and it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you all, is there a way to mark everyone's answer as correct so you all get the points?
![](/skins/images/695EE5AD3E567050FEDD72575855ED93/ptc_skin/images/icon_anonymous_message.png)