Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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)

Risposta accettata

Stephan
Stephan il 22 Apr 2021
Modificato: Stephan il 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)

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by