1-Visitor
October 19, 2021
Question
Piecewise functions & input vector definition
- October 19, 2021
- 5 replies
- 3755 views
Relatively new user of MathCAD here. I am trying to define a series of piecewise functions using if functions, then plot them by evaluating the function over a vector with a simple programming loop. When I define the input vector (i.e. the x points) using elipses like so:
x:= 0 ft, 0.05ft .. 9.25 ft
, I get an error. When I manually define an input vector ("Matrix/Tables" tab, "Insert Matrix") it works. Two questions:
1) Why is this? What is different between the two definitions of the input x vector?
2) Is there a more efficient way to define the input vector than manually defining a matrix? Is there a more efficient way to be doing this in general?
Okay, so I lied about only 2 questions. My worksheet is attached.
Thanks,
- Kevin

