MATLAB: How to write exponential function with limits

exponential function

Hi, How can I write the following two functions
Can I use "piece wise" function? If yes than how to use it?

Best Answer