MATLAB Answers

I need to plot "e" by function of all values of "dm" i but can't do it please help

1 view (last 30 days)
Erdem Turan
Erdem Turan on 22 Apr 2021
Commented: Erdem Turan on 22 Apr 2021
clc
clear all
F=2000 ;
dm=[12: 5: 37];
f=0.2 ;
l=2 ;
Q= ((F.*dm)/2)*((l+(pi*f.*dm)/((pi.*dm)-(f*l)))) ;
e= (F*l)/(2*pi.*Q);
plot(dm,e)

Accepted Answer

Stephan
Stephan on 22 Apr 2021
Edited: Stephan on 22 Apr 2021
F=2000 ;
dm=[12: 5: 37];
f=0.2 ;
l=2 ;
Q= ((F.*dm)/2)*((l+(pi*f.*dm)/((pi.*dm)-(f*l)))) ;
e= (F*l)./(2*pi.*Q);
% ^
% |
% --- elementwise division - "/" is a matrix operator
plot(dm,e)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!