How to plot a piecewise in MATLAB?
Show older comments
I have this piecewise function and I have to plot this discrete signal using the stem function. This is what I wrote:

And this is the error I am getting:

What is it that I am doing wrong?
1 Comment
Siddharth Garg
on 8 Sep 2019
Accepted Answer
More Answers (0)
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!