필터 지우기
필터 지우기

How can I plot peaks using findpeaks in a UIAxes in App Designer ?

조회 수: 2 (최근 30일)
Florent Dumortier
Florent Dumortier 2017년 11월 10일
댓글: Florent Dumortier 2017년 11월 23일
I am currently looking for a way to insert a plot using the findpeaks function into a UIAxes figure in App Designer. Is it only possible to do so or the only possibility is to plot it in an extern figure ? Thank you in advance for your answer.

답변 (1개)

Veda Upadhye
Veda Upadhye 2017년 11월 14일
Hi,
Yes, you can insert a plot into UIAxes in App Designer.
On opening App Designer, you can add the UIAxes to the figure using the Component Library.
To add your plot, switch to the Code View and add a Callback named "startupFcn".
Insert your code here. This will execute on startup. (You can also include the code in a callback function depending on your workflow)
Here is an example for your reference:
https://www.mathworks.com/help/matlab/creating_guis/simple-app-designer-example-apps.html
Hope this helps,
Veda
  댓글 수: 1
Florent Dumortier
Florent Dumortier 2017년 11월 23일
That was not exactly what I was looking for but thank you for your answer. I finally found a way to do what I wanted to do. Instead of using the plotting property of the find peaks function directly in the app designer, I just used the function with output arguments and plotted in an inter UIAxes using the outputs of the find peaks function.

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

카테고리

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