필터 지우기
필터 지우기

I need to know how can plot real time sine wave graph of speech signal in app designer.

조회 수: 4 (최근 30일)
I would like to design a GUI in-app design for speech/acoustic signal processing. I don't know what to do to plot a real-time sine wave graph
  댓글 수: 3
Ayush
Ayush 2023년 2월 27일
  1. Create a new App Designer app by selecting "App Designer" from the MATLAB Home tab.
  2. Drag and drop an axes component onto the app design canvas.
  3. Add the following code to the app's startup function to initialize the axes and create a line object for the sine wave:
function startupFcn(app)
% Set the x and y limits of the plot
xlim(app.UIAxes, [0, 2*pi]);
ylim(app.UIAxes, [-1, 1]);
% Create a line object for the sine wave
app.Line = animatedline(app.UIAxes);
end
4. Add an updatePlot function to continuously update with new data.
5.Add a timer component to the app by dragging and dropping it onto the design canvas.
6.Set the timer's period to the desired refresh rate (e.g., 0.1 seconds).
7. Add the call to the updatePlot function in timer's timerFcn callback.
Kulbir
Kulbir 2023년 2월 27일
Hi Sir, Thank you for the information. i have done with the steps upto 3. Next i am bit confused,
step 4. i dont know what shd i add to assign updatePlot function to it. i am stuck here, please help me out then i will move to the next steps. Thx

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by