필터 지우기
필터 지우기

how to generate waveform graph?

조회 수: 5 (최근 30일)
sing lai
sing lai 2014년 4월 21일
댓글: sing lai 2014년 4월 22일
Can anyone help me generate code to produce this waveform graph? This is wave equation that using finite difference method. Thank you very much for helping..

채택된 답변

the cyclist
the cyclist 2014년 4월 21일
Here is a simple script that will plot the function sin(L*x). Perhaps you can adapt it to plot your function u(x,t):
L = 0.5;
x = 0 : 0.1 : 60;
u = sin(L*x);
figure
plot(x,u)
  댓글 수: 1
sing lai
sing lai 2014년 4월 22일
Thank you, i get the idea, but how to apply finite difference method into this code? thanks for your help~

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by