How do I plot piecewise defined functions in different colours.
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Good day
I want to write a program to plot piecewise defined functions on the same graph in different colour.The functions are:
F(x)=0.5X if X<=100 ; 50 +0.2(x-1000) if 100<x<=200 ; 75+0.5x if x>200
On same graph with
G(X)= 0.01X IF X<=75 ; 50+0.1(X-75) IF x>75
Note these may not be actual figures.Just for illustrative purposes.
Thanks.
1 commentaire
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!