(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

plot using matlab:

g = 3 cos (10pi t) convolved with 4 impulse (t +0.1)

2. Relevant equations

3. The attempt at a solution

x = -10:0.1:10;

u = 3*cos (10*pi*x);

v = 4*dirac(x + 1./10);

y = conv (u,v);

plot (x,y);

but i keep getting this error:

Error using ==> plot

Vectors must be the same lengths

any ideas?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB errors

**Physics Forums | Science Articles, Homework Help, Discussion**