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).^2plot(Ew,w)
Best Answer