How to plot this equation to obtain the figure?
Show older comments


1 Comment
Walter Roberson
on 18 Dec 2019
You have a bit of a problem: your has three independent inputs, and one output, so you need a 4-dimensional plot . The plot c that you show is for a fixed time, t1, not the general equation.
If you have the Symbolic Toolbox, probably the easiest approach is to use a piecewise() equation, subs() in a fixed time, and fplot() the result. If you do not have the Symbolic Toolbox, either use logical indexing to construct your answer, or else just compute over the three y ranges separately and concatenate them together.
Accepted Answer
More Answers (1)
soe min aung
on 23 Dec 2019
0 votes
3 Comments
Walter Roberson
on 23 Dec 2019
I did help you. I suggested two different strategies (Symbolic Toolbox or not), and two technical implementations for the non-symbolic strategy. Have you read the documentation about piecewise() and about logical indexing ?
soe min aung
on 23 Dec 2019
Walter Roberson
on 23 Dec 2019
Do you have the symbolic toolbox? Did you read about piecewise? Did you read about logical indexing?
Categories
Find more on Subplots 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!