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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by