how can i shade the area between two curve
Ältere Kommentare anzeigen
i have two curve that intersect at two points,my aim is to calculate the area between this two curve.this is ok but on the other hand,i'd like to see this two curve in the figure,this is also ok but i don't know how i can shade the area that is between two curve.this is my program:
syms t
y1=t^2;
y2=-(t^2-16);
fg=figure;
ax=axes;
ez1=ezplot(char(y1),[-8,8]);
hold on
ez2=ezplot(char(y2),[-8,8]);
legend('y1= t^2','y2= -(t^2-16)')
set(ez1,'color',[1 0 0])
title(ax,['y1= t^2' ' y2= -(t^2-16)'])
t=solve('-(t^2-16)-t^2=0');
kokler=double(t)
alan=quad('-(t.^2-16)-t.^2',kokler(2),kokler(1))
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!