Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Animation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by