interference b/w two sine wave error.please please help..

조회 수: 1 (최근 30일)
TULIKA
TULIKA 2014년 10월 31일
편집: TULIKA 2014년 10월 31일
x = [0:.1:5];
w=1;
t=2;
lm=233*10^-9;
k=2*pi/lm;
f1=sin(k*x-w*t);
f2=sin(k*x-w*t);
f=f1+f2;
plot(x,f);
There is an output.i dont know this is wrong or right.but the output should be periodic black and white lines.. I tried
onematrix=one(size(f));
om2d=onematrix.*f
imagesc(om2d)
colormap(gray)
but there is an error
??? Error using ==> mtimes
Inner matrix dimensions must agree.

채택된 답변

Image Analyst
Image Analyst 2014년 10월 31일
What does x and t represent? And w, k, and lm? All you're doing is summing the same sine wave, so f is just simply 2*f1 since f1 and f2 are identical. If you're trying to modulate one waveform by the other, see my attached warbling sound demo, and Moire pattern demo (which probably requires the Image Processing Toolbox).
  댓글 수: 1
TULIKA
TULIKA 2014년 10월 31일
편집: TULIKA 2014년 10월 31일
x is distance,t is time,w is omega,k is wave number.
we can have two omega and time for two sinewave
i have to add two sine wave and plot that with varying distance not time...
then the output's haar wavelet transform
on which equation the program will be done is
f =sin(kx-wt);

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by