About plotting piecewise function.

2 views (last 30 days)
why Matlab says index exceeds matrix dimensions at line 3? Thanks

Accepted Answer

Star Strider
Star Strider on 30 Jan 2018
See if using:
for k = 1:length(t)
instead, works correctly in your code.

More Answers (0)

Categories

Find more on Elementary Math in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!