About plotting piecewise function.
2 views (last 30 days)
Show older comments

why Matlab says index exceeds matrix dimensions at line 3? Thanks
0 Comments
Accepted Answer
Star Strider
on 30 Jan 2018
See if using:
for k = 1:length(t)
instead, works correctly in your code.
0 Comments
More Answers (0)
See Also
Categories
Find more on Elementary Math 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!