One half sine wave simulink
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
Hi. I'm trying to simulate using Simulink a quarter car model as it passes over a obstacle. My problem is that the obstacle has the shape of a single half sine wave as the one find in the attachment. How do I optain this in Simulink?
Thank you
댓글 수: 0
채택된 답변
  Azzi Abdelmalek
      
      
 2015년 8월 15일
        Create a file filename.mat
A=1;
T=2*0.01;
f=1/T;
t=0:0.001:0.3;
idx=t<0.1 |  t>0.11;
y=A*sin(2*pi*f*(t-0.1));
y(idx)=0;
yt=[t;y];
save filename yt
추가 답변 (1개)
  Mohammad Al Salti
 2016년 9월 21일
        Hello, I also want to have this input but I didn't understand how to make the m-file and import it into simulink using from data file. Can you explain more please?
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!