God, I hate Matlab. Whatever the other math equation program is, the one that physics professors like, that's the better one by far. I don't think anybody uses Matlab in real life.

Cmon, i know someone knows the answer to this. I need to know how to do this for an assigment due tomorrow!!

Actually Mathlab is a pretty sweet program. A lot of people use it in the DoD for research and testing purposes, and I'm sure its used other places too. It really is an awesome software package... Sorry I didnt get here earlier though, are you trying to plot a piecewise function? Or do you not care because it was due earlier today... One way would be to set up two different X's like for t>0 y=X_1 and for t<0 y=X_2 and then you set up the X variables to contain the right variables

okay, I tried: for t>0 x=5 end but its giving me an error: Missing variable or function. but if instead of "for t>0" I put, say, "for t=3" It works fine. Any idea why I can't use '>' or '<'?

You are making a for loop. Syntax for a for loop in MATLAB is - for x = 1:n, {THIS IS THE INITIALISATION OF 'x',THE INCREMENT, AND ITS LIMIT} ~functionality~ end You have put "for t>0". It is not possible to initialise a variable to an inequality. Hope it's clear.