How do I input a signal which is not a standard signal (like step or ramp) to a transfer function?
1 次查看(过去 30 天)
显示 更早的评论
How do I input a signal which is not a standard signal (like step or ramp) to a transfer function? My signal is an error signal from a comparator & I am using a for loop in my program.
for j=1:(t1*100)
xc(j+1,1)=current(j+1,1)*pos_lim/i_lim;
xe(j+1,1)=xc(j+1,1)-xv(j,1);
% transfer function
% output=xe(j+1,1)*transfer function
end
0 个评论
回答(1 个)
Azzi Abdelmalek
2015-7-8
%Example
H=tf(1,[1 2])
time=0:0.1:10
input_s=rand(1,numel(time));
output_s=lsim(H,input_s,time)
plot(time,output_s)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array Geometries and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!