필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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.

채택된 답변

KSSV
KSSV 2019년 2월 12일
편집: KSSV 2019년 2월 12일
xData = linspace(0,4*pi,1024);
yDataA = cos(xData);
yDataB = cos(xData);
p = yDataA.*yDataB ;
plot(xData,p)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by