Effacer les filtres
Effacer les filtres

How do I form a product of two arrays and add the numerical value of the integral in the plot?

1 vue (au cours des 30 derniers jours)
xDataA = linspace(0,4*pi,1024);
yDataA = cos(xDataA);
xDataB = linspace(0,4*pi,1024);
yDataB = cos(xDataB);
I have two arrays here and I want to plot the product and add the numerical value of the integral in the plot.

Réponse acceptée

KSSV
KSSV le 12 Fév 2019
Modifié(e) : KSSV le 12 Fév 2019
xData = linspace(0,4*pi,1024);
yDataA = cos(xData);
yDataB = cos(xData);
p = yDataA.*yDataB ;
plot(xData,p)

Plus de réponses (0)

Catégories

En savoir plus sur Animation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by