writing a traveling electromagnetic wave

How can I write the highlited below in matlab with ploting :
Exercise 1-3: The electric field of a traveling
electromagnetic wave is given by
E(z, t) = 10 cos(π × 10^7t + πz/15 + π/6) (V/m).
Determine (a) the direction of wave propagation, (b) the
wave frequency f , (c) its wavelength λ, and (d) its phase
velocity up.
Answer: (a)−z direction, (b) f = 5 MHz, (c) λ = 30 m,
(d) up = 1.5 × 108 m/s.

2 Kommentare

darova
darova am 15 Feb. 2021
Please provide your attempts
Moaiyd Hobani
Moaiyd Hobani am 15 Feb. 2021
But not sure if it is correct or not. I tried also to look at this forum with no luck

Melden Sie sich an, um zu kommentieren.

Antworten (1)

darova
darova am 16 Feb. 2021

0 Stimmen

I think your plot should be a surface since you have two dependent variables z and t
Here is an example
t = linspace(0,200,30);
x = linspace(0,200,30);
[T,X] = meshgrid(t,x); % create matrices
E = % your formula
surf(T,X,E)
Remember about dot before operator signs while using matrices

4 Kommentare

Moaiyd Hobani
Moaiyd Hobani am 18 Feb. 2021
Bearbeitet: darova am 18 Feb. 2021
Thanks for your help, I did the below:
t = linspace(0,200,30);
z = linspace(0,200,30);
[T,Z] = meshgrid(t,z); % create matrices
E = 10*cos((pi*10^7*t)+(pi*Z/15)+(pi/6))
surf(T,Z,E)
darova
darova am 18 Feb. 2021
Here are suggestions
Moaiyd Hobani
Moaiyd Hobani am 18 Feb. 2021
Appreciate your suggestion. Sorry what is the “increate point” ? Do you mean “increase points “? How much ?
darova
darova am 18 Feb. 2021
Increase number of points

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 14 Feb. 2021

Kommentiert:

am 18 Feb. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by