How to plot this equation to obtain the figure?
Afficher commentaires plus anciens


1 commentaire
Walter Roberson
le 18 Déc 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.
Réponse acceptée
Plus de réponses (1)
soe min aung
le 23 Déc 2019
0 votes
3 commentaires
Walter Roberson
le 23 Déc 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
le 23 Déc 2019
Walter Roberson
le 23 Déc 2019
Do you have the symbolic toolbox? Did you read about piecewise? Did you read about logical indexing?
Catégories
En savoir plus sur Subplots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!