sine wave function

조회 수: 1 (최근 30일)
simira atraqi
simira atraqi 2012년 3월 28일
Hello,
I need the function for the sine wave if
x= 4000
y= 3000
mean level = 1003
Amplitude = 3
Wavelength = 100
Thanks a lot

채택된 답변

RNTL
RNTL 2012년 3월 28일
what are x and y ? generally, according to your wavelength if you're talking about radio signals in free space, then the frequency of the sine is f = c/Wavelength (c=3e8). you then need to set sampling frequency, i.e fs = 5*f;
and just have sine = mean level + 3*sin(2*pi*f*[1:whatever length]/fs);
  댓글 수: 1
simira atraqi
simira atraqi 2012년 4월 5일
Who can I attach file here?

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

추가 답변 (2개)

simira atraqi
simira atraqi 2012년 3월 28일
Are this correct?
x = 2; % Sets the resolution (step length), in µm, along the x-axis. y = 2; % Sets the resolution (step length), in µm, along the y-axis. z = 1; % Sets the resolution (step length), in µm, along the z-axis. xLength = 4000; % Sets the length of the surface in X. yLength = 3000; % Sets the length of the surface in Y. wavelength = 100; f = 3*sin(x*2*pi/wavelength*[1:4000]) + 1003; % The function for the sine wave with the % amplitude 3 µm and wave length of about 100 µm. Mean level is % 1003 µm.
I can not plot this function.
  댓글 수: 1
RNTL
RNTL 2012년 3월 28일
From your first question I understood as you need a 1-D sine wave.
What is the analytic function that describes your problem?

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


simira atraqi
simira atraqi 2012년 3월 28일
Creates a matrix describing 3D surface and print it. Thank you so much for your time.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by