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

1 回表示 (過去 30 日間)
Erdem Turan
Erdem Turan 2021 年 4 月 22 日
コメント済み: Erdem Turan 2021 年 4 月 22 日
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)

採用された回答

Stephan
Stephan 2021 年 4 月 22 日
編集済み: Stephan 2021 年 4 月 22 日
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)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by