??? 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)

 Accepted Answer

Torsten
Torsten on 27 Jan 2017
Edited: Guillaume on 27 Jan 2017
Ew= 1-(Wp./w).^2
Best wishes
Torsten.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 27 Jan 2017

Edited:

on 27 Jan 2017

Community Treasure Hunt

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

Start Hunting!