wave propagation grape code

8 visualizaciones (últimos 30 días)
rance low
rance low el 2 de Nov. de 2016
Respondida: pukhraj khemada el 9 de Abr. de 2019

I want to see graph about wave propagation at -6<x<6,-6<z<6 and t=0,4,8,12,16 information of the wave propagation(y propagation plane wave) : E(x,z,t)= cos(2*pi*10^8+1.05x+1.8z) how can i get the code of graph i want to see? That's all. thank you.

  3 comentarios
rance low
rance low el 2 de Nov. de 2016
Editada: rance low el 2 de Nov. de 2016
wer
Rena Berman
Rena Berman el 20 de En. de 2017
(Answers Dev) Restored Question.

Iniciar sesión para comentar.

Respuesta aceptada

KSSV
KSSV el 2 de Nov. de 2016
N = 100 ;
x = linspace(-6,6,N) ;
z = linspace(-6,6,N) ;
[X,Z] = meshgrid(x,z) ;
t = [0 4 8 12] ;
E = zeros(N,N,length(t)) ;
for i = 1:length(t)
E(:,:,i)= cos(2*pi*10^8*t(i)+1.05*X+1.8*Z) ;
surf(X,Z,E(:,:,i)) ;
view(2)
drawnow
end
  2 comentarios
rance low
rance low el 2 de Nov. de 2016
oh thank you! i have a question. does the code'view(2)' mean 't=2?'
KSSV
KSSV el 2 de Nov. de 2016
You remove view(2) and see how the out put would be.

Iniciar sesión para comentar.

Más respuestas (1)

pukhraj khemada
pukhraj khemada el 9 de Abr. de 2019
Vortex array by three plan wave interfrnce

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by