Comparing two plots which are functions of time

1 次查看(过去 30 天)
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... :)

请先登录,再进行评论。

更多回答(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