Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

KSSV
KSSV il 12 Feb 2019
Modificato: KSSV il 12 Feb 2019
xData = linspace(0,4*pi,1024);
yDataA = cos(xData);
yDataB = cos(xData);
p = yDataA.*yDataB ;
plot(xData,p)

Più risposte (0)

Categorie

Scopri di più su Animation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by