creating a dragable matlab component

조회 수: 7 (최근 30일)
Nathan Bblanc
Nathan Bblanc 2021년 2월 9일
답변: Nathan Bblanc 2021년 2월 10일
following these two discussions:
I decided to try and create my own graphic component. I essentially want it to be a draggable picture with a title.
I tried to follow the instructions here
but encountered some problems.
my first problem is it needs to have something equivalent to a "buttonupfunction" and a "buttondownfunction", and I am not sure how to do this. I am pretty sure it can be done because uiknobs have similar properties.
google has failed me. will be thankful for any assistance
Nathan
  댓글 수: 1
Jan
Jan 2021년 2월 9일
편집: Jan 2021년 2월 9일
Are you talking of a figure or uifigure? Instead of a dragable image it is much easier to use a dragable axes, which displays an image.
"but encountered some problems" - then please post the code and explain the problems.

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

답변 (1개)

Nathan Bblanc
Nathan Bblanc 2021년 2월 10일
thank you for your answer Jan. I am talking about a UIfigure, trying to work with matlab's app designer. for a figure some dragabble solutions already exist. Is it possible to create a dragable axes in a uifigure? how? regarding my problems, I posted another problem here
my code is also attached there.
Nathan

카테고리

Help CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by