How to get matlab codes into Simulink ??
이전 댓글 표시
The following code has been written by me and it is giving my result in Matlab. Can you tell how to use this code in Simulink so that I can give this as input to my switch.??
numpulses=10;
Pcell=cell(1,numpulses);
dt=.000000001;
for i=1:numpulses
T=.00000383*randn+.00000526;
W=2*T/3;
t=0:dt:T;
Pcell{i}=(t<=W);
end
pulse=[Pcell{:}];
t=(0:length(pulse)-1)*dt;
plot(t,pulse) ;
ylim([-1 2])
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Signal Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
