I would like to create a GUI which displays a continuous sine wave (random amplitude) at .4 Hz. Can anyone help?

8 ビュー (過去 30 日間)
Dc215905
Dc215905 2017 年 10 月 12 日
コメント済み: Dc215905 2017 年 10 月 13 日
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.

回答 (1 件)

The Matlabinator
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.
  1 件のコメント
Dc215905
Dc215905 2017 年 10 月 13 日
Thank you for the resources. In terms of the drawnow command, is it possible for me to feed in a pre-set sinewave that isn't drawn in real time but will statically move in real time? Ultimately, I would like to integrate a bend sensor that will continuously display voltages (in the y direction) based on the bend of the sensor. That way I will be able 'Track' the static sine wave moving across the screen.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by