Drag bar input form

조회 수: 2 (최근 30일)
Ahmed Abdulla
Ahmed Abdulla 2022년 2월 4일
댓글: Ahmed Abdulla 2022년 2월 9일
Hi everyone, I havent seen this before and dont know if its possible.
I have an image in 2d array format where the values in this array go from 0-1. I am trying to replace values that are greater than X and less than Y with NaN and surf the image. My code is ready however I am testing out what X and Y should be and it takes a lot of time to change it manually and type the numbers on each iteration. I was wondering if there a way to implement a scale bar similar to the image attached where I can change X and Y by dragging the value on the scale and observe the changes this make to my plot?

채택된 답변

Rishabh Singh
Rishabh Singh 2022년 2월 9일
Hi Ahmed,
MATLAB Live script editor provides the functionality you are searching for. Check out the documentation link for more information.
Above is how it would look like when implemented.
Hope this helps.
  댓글 수: 1
Ahmed Abdulla
Ahmed Abdulla 2022년 2월 9일
Thank you Rishabh! This is exactly what I was looking for

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by