Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
simulink
조회 수: 1 (최근 30일)
이전 댓글 표시
if i have a simulink model and the output of low pass filter is sin signal with certain frequency if i want to know this frequency and display it on a screen what should i do? remark simulation model time is (inf.)
댓글 수: 0
답변 (2개)
K E
2012년 3월 22일
I would output the signal to the workspace and calculate the frequency from within Matlab; here is an example approach. You could use Matlab to start your simulation too using the sim command, and afterward plot the spectrum that you calculate.
댓글 수: 8
K E
2012년 4월 4일
You could decide how much time you would need to get a good estimate of the frequency (for example, 30 periods of a 10-second sine wave would be 300 seconds), then put an event listener (http://www.mathworks.com/help/toolbox/simulink/slref/add_exec_event_listener.html) in your model that would output the results to the workspace at 300 seconds.
Sivakumaran Chandrasekaran
2012년 3월 24일
I think you can use the option named display which is available in sink block.. I am not sure also whether this will work or not.
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!