Community Profile # sing lai

Active since 2014

#### Statistics

• • #### Content Feed

View by

Question

How to plot 3D wire mesh plot?
I have a project that needed to plot this 3D mesh plot, can you help me generate code for this?thanks.. <</matlabcentral/an...

meer dan 8 jaar ago | 0 answers | 0

### 0

Question

how to generate waveform graoh u(x,t) versus number of oscillations?
I have a project that need to plot this graph using Matlab, and I'm a new user for Matlab, can you help me to generate code for ...

meer dan 8 jaar ago | 0 answers | 0

### 0

Question

how to fix Index exceeds matrix dimensions?
L = 0.8;c=1;T=0.5; a = 0 :120; it0 = inline('0.2.*sin(x)','x'); M=80;N=50; dx=L/M;dt=T/N; for i = 1:M + 1, u(i,1) = it0...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

how to generate waveform graph?
Can anyone help me generate code to produce this waveform graph? This is wave equation that using finite difference method. Th...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

finite difference method, why the result is zero?
function [u,x,t] = wave(a,xf,T,it01,it02,i1t0,bx0,bxf,M,N) %solve a u_xx = u_tt for 0<=x<=xf, 0<=t<=T % Initial Condition: u(...

meer dan 8 jaar ago | 0 answers | 0

### 0

Question

How to fix this error?
function [u,x,t] = wave(a,xf,T,f,i1t0,bx0,bxf,M,N) %solve a u_xx = u_tt for 0<=x<=xf, 0<=t<=T % Initial Condition: u(x,0) = i...

meer dan 8 jaar ago | 0 answers | 0

### 0

Question

How to change initial condition?
ffunction [u,x,t] = wave(a,xf,T,it0,i1t0,bx0,bxf,M,N) %solve a u_xx = u_tt for 0<=x<=xf, 0<=t<=T % Initial Condition: u(x,0) ...

meer dan 8 jaar ago | 0 answers | 0

### 0

Question

How to fix the error?
function [u,x,t] = wave(a,xf,T,it0,i1t0,bx0,bxf,M,N) %solve a u_xx = u_tt for 0<=x<=xf, 0<=t<=T % Initial Condition: u(x,0) =...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

How to draw graph?
<</matlabcentral/answers/uploaded_files/8562/Untitled.png>> Anyone can help me generate Matlab code to draw a graph of x vers...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

How to fix this error?
This is the code: dx = .01 ; % Spacing of points on string dt =.001 ; % Size of time step c = 1 ;% Speed of wave propa...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

How to link the wave equation with guitar string
I am totally a new user of Matlab, and my final year project is requested to use Matlab, so I really need your help to answer my...

meer dan 8 jaar ago | 0 answers | 0

### 0

Function to create a sound --> (Error: Too many Input Arguments?)
I try to use your code, but there is error in this line: freq=440*2^((keynum-49)/12) why?

meer dan 8 jaar ago | 0

Question

How do I conduct matlab code for 1D wave equation?
The picture below is my equation, I need the matlab to solce this equation using finite difference method, anyone can help me? T...

meer dan 8 jaar ago | 0 answers | 2