Effacer les filtres
Effacer les filtres

How to fill between curves

2 vues (au cours des 30 derniers jours)
Jake Simmonds
Jake Simmonds le 1 Fév 2019
Commenté : madhan ravi le 1 Fév 2019
Hello there, just trying to work out how to use matlab to fill the regions between curves i've looked online and can't find anything of use. What i would like
is a method which given a set of values from f(t), and g(t) , where t= start:step:stop fills in the space between f(t) and g(t).
Best Regards Jake

Réponses (1)

Bjorn Gustavsson
Bjorn Gustavsson le 1 Fév 2019
Try something like:
f_of_t = f(t);
g_of_t = g(t);
fill([t,flilr(t)],[f_of_t,fliplr(g_of_t)],'r')
HTH
  1 commentaire
madhan ravi
madhan ravi le 1 Fév 2019
fliplr(t)
% ^-—-—-— typo missed it

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by