??? Error using ==> mldivide Matrix dimensions must agree.

Hi, I get an error in this line Ew= 1-(Wp/w).^2; how can I divide Wp by 'w' which is a defined range of values ? Thanks
c= 3*10^8;
a= input('Enter the value of a: ')
r= input('Enter the value of r: ')
Wp_sq = (2*pi*c^2)/(a^2.*log(a/r))
Wp = sqrt(Wp_sq)
w= linspace(Wp-10,Wp+10,100)
Ew= 1-(Wp/w).^2
plot(Ew,w)

 Respuesta aceptada

Torsten
Torsten el 27 de En. de 2017
Editada: Guillaume el 27 de En. de 2017
Ew= 1-(Wp./w).^2
Best wishes
Torsten.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de En. de 2017

Editada:

el 27 de En. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by