how can i solve the problem in line 22

조회 수: 1 (최근 30일)
Binta
Binta 2015년 9월 3일
편집: Walter Roberson 2015년 9월 4일
close all
clear all
C=51e-9; % set the capacitance of the beam
A=4.905; % driving acceleration
f=(0:1:73)';
w=2*pi*f; % driving frequency
d=-190e-12; % piezoelectric strain coefficient
e=1.594e-8; % dielectric constant of the piezoelectric material
Y=66e9; % material Young's Modulus
k=0.29; % coupling coefficient
width=12.7e-3; % beam width
lb=21.5e-3;
lm=2e-3;
le=31.5e-3;
tc=0.19e-3;
tsh=0.13e-3;
b=0.16e-3;
R=60000;
s=0.02858; % damping ratio
b1=(3*b*(2*lb+lm-le))/(lb^2*(2*lb+(3*lm/2)));
P=1/(2*w^2)*(A^2*R*C^2*(Y*d*tc*b1/e)^2)/((4*s^2+k^4)*(R*C*w)^2+4*s*k^2*R*C*w+4*s^2);% Power equation
figure 1
plot(w,P)

답변 (1개)

Torsten
Torsten 2015년 9월 3일
f is a vector. Thus you will have to replace all "*" by ".*", all "^" by ".^" and all "/" by "./" in the power equation.
Best wishes
Torsten.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by