Question: Dynamically build piecewise function

Hi,

I read data into Maple, and based upon that, wish to dynamically construct a piecewise function. In advance, it is unknown how many entries the piecewise will have or where the breakpoints are.

How can I work dynamically/programmatically with piecewise functions? Is there some documentation or concept I should know about so I can help myself on this? The only possibility I've found thus far is using the sscanf function, which makes it a little more complicated than necessary.

Please Wait...