what's wrong in my code?
Show older comments
Accepted Answer
More Answers (1)
Walter Roberson
on 27 Nov 2021
1 vote
You created y as a symbolic function, syms y(t)
You try to assign to ySol(y) . But y is a function, and you cannot index by a function.
You could assign to ySol(t)
1 Comment
Art dela vega
on 28 Nov 2021
Categories
Find more on Functions 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!

