??? Error using ==> mldivide Matrix dimensions must agree.
Show older comments
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
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!