Asked by Trulien Elmer
on 10 Nov 2018 at 18:50

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?

Answer by madhan ravi
on 10 Nov 2018 at 19:04

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);

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 7 Comments

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635412

## Trulien Elmer (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635416

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635418

## Trulien Elmer (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635427

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635432

## Trulien Elmer (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635439

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/429126-illogical-plotting-and-results-in-delayed-function#comment_635445

Sign in to comment.