How to add a number of transfer function
이전 댓글 표시
Dear All
I am trying to get transfer function of a circuit, my question is how to sum Rn in the for loop rather than using this command
R=Rn(1)+Rn(2)+Rn(3)+Rn(4)+Rn(5)+Rn(6)+Rn(7)+Rn(8)+Rn(9)+Rn(N)
thanks in advance
close all
clear all
clc
format short
s=tf('s')
RL=100e3 % leakge resistor
%define the parameters
L=50e-9 % inductance the unit should be converted from nano
Ri=1.883e-3
T=1.67 % tau
C=1130 % capacitor
N=10 % the number of RC
Zm=(Ri+L*s+1/C*s) % resitor, inductance and capacitor connected in series
for n=1:N
Rn(n)=(2*T*C*s)/(n^2*pi^2*1)
Cn=C/2
end
R=Rn(1)+Rn(2)+Rn(3)+Rn(4)+Rn(5)+Rn(6)+Rn(7)+Rn(8)+Rn(9)+Rn(N)
Zs=R/(1+R*Cn*s)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!