illogical plotting and results in delayed function

Here is the function im dealing with
clear;
syms x(t) X(w)
f1 = 2;
f2 = 3;
x(t) =cos(2*pi*f1*t)
subplot(2,1,1);
ezplot(x);
subplot(2,1,2);
ezplot(x(t-10));
And here are the results
how is this possible, even though there it is a delayed function?

7 comentarios

Name a real-valued t such that cos(4*pi*t) is different than cos(4*pi*(t-10)) ?
what do you mean?
In order for the plots to be different, there must be at least one specific t value for which x(t) has a different result than x(t-10) . What is at least one such t value? For example, do you expect x(1/3) to be different than x(1/3-10) ?
so it has to be determined? for example giving t=1:100, like that?
You expect the plots to be different. What is a specific t value at which you expect the two plots to have a different value, and what value are you expecting there for the two different plots ?
Trulien Elmer
Trulien Elmer el 10 de Nov. de 2018
Editada: Trulien Elmer el 10 de Nov. de 2018
im not looking for a huge difference, all im looking for is a delayed cosine function by 10 units for every single time by using ezplot and syms function. isnt that what x(t-10) = cos(t) going to look like?
Walter Roberson
Walter Roberson el 10 de Nov. de 2018
Editada: Walter Roberson el 10 de Nov. de 2018
Delaying 4*pi*t by an integer t results in exactly the same value. cos 4*pi*t is periodic with a period of 1/2 so delaying it by 10 has no effect on the value.
Now if you were to take x(t-10.3) for example... Well, you would not be able to tell the difference compared to x(t-0.3) but it would be different than x(t)

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 10 de Nov. de 2018
f1 = 2;
f2 = 3;
t=linspace(0,1,1000)
x=cos(2.*pi.*f1.*t)
x1=cos(2.*pi.*f2.*(t-10))
subplot(2,1,1);
plot(t,x);
subplot(2,1,2);
plot(t,x1);

Etiquetas

Preguntada:

el 10 de Nov. de 2018

Editada:

el 10 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by