필터 지우기
필터 지우기

Comparing two plots which are functions of time

조회 수: 1 (최근 30일)
Krishnaraja Sagar
Krishnaraja Sagar 2020년 11월 17일
댓글: VBBV 2020년 11월 18일
I have two signals which are functions of time t, which when plotted gives the desired graphs.
I need to display that these plots are equal and hence, linear. How do I do this? I tried comparing the function handles I used, but they are not accurate.
Data I have used :-
t = -10:0.1:10
x1(t) = 2sin(2*pi*3t)
x2(t) = 3sin(2*pi*2t)
y(x) = t.*x

채택된 답변

VBBV
VBBV 2020년 11월 17일
편집: VBBV 2020년 11월 17일
%if true
%if true
t = -10:0.1:10;
x1 = 2*sin(2*pi*3*t);
x2 = 3*sin(2*pi*2*t);
y11 = t.*(x1+x2);
plot(t,y11,'b'); figure;
y1 = t.*x1+t.*x2;
plot(t,y1,'r')
  댓글 수: 8
Krishnaraja Sagar
Krishnaraja Sagar 2020년 11월 18일
Thank you so much...!!
Have been stuck on this simple problem for a long time... :)
VBBV
VBBV 2020년 11월 18일
welcome. Please accept the answer

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by