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

 采纳的回答

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by