I would like to create a GUI which displays a continuous sine wave (random amplitude) at .4 Hz. Can anyone help?
조회 수: 13 (최근 30일)
이전 댓글 표시
I would like to create a GUI which displays a continuous sine wave (random amplitude) at .4 Hz. Ultimately, I would like to integrate data acquisition from a bend sensor so that I can have participants track the sine wave with the bend sensor. Can anyone give me any tips on where to begin. I am new to matlab and coding.
댓글 수: 0
답변 (1개)
The Matlabinator
2017년 10월 12일
편집: The Matlabinator
2017년 10월 12일
Hi David,
There are several ways you can build a GUI: (1) using the GUIDE tool, with the Matlab App Designer, or programmatically. You can find more information on the three here:
Building one programmatically is probably not the way for a Matlab beginner, but this also depends on what previous experience you have with GUI building and programming in general.
When you are at the stage of plotting your function, make sure that you assign a figure handle and then use the drawnow command to make your sinusoid appear on your axes immediately.
참고 항목
카테고리
Help Center 및 File Exchange에서 Counter and Timer Input and Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!