How to display space Key in MATLAB App Designer

조회 수: 5 (최근 30일)
NAVNEET NAYAN
NAVNEET NAYAN 2023년 8월 23일
댓글: NAVNEET NAYAN 2023년 8월 24일
I have made a basic GUI that displays videos of alphabets. It's basic look is attached here named as GUI_MATLAB. I am facing a problem. Videos corresponding to the alphabets are getting displayed properly. But, when I provide two alphabets with a space bar between them, only video of the 1st alphabet gets displayed. I know this is happening because it is not getting any input video or input image for space bar.
Can any one suggest me something how to solve this problem or, how to provide image/video input for space bar?
  댓글 수: 2
Kevin Holly
Kevin Holly 2023년 8월 23일
How are you dusplaying videos that correspond to alphabets?
Are you reading from
InputTextEditField.Value
and then reading and displaying the appropriate video file that you have stored on your computer?
Did you want to play a video based on each character within the edit field?
NAVNEET NAYAN
NAVNEET NAYAN 2023년 8월 23일
Yes you got it right. I am displaying and reading the appropriate video file that I have stored on my computer. Yes, I wanted to play a video based on each character within the edit field.

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

채택된 답변

Walter Roberson
Walter Roberson 2023년 8월 23일
v = char(InputTextEditField.Value);
v(isspace(v)) = [];
Now use the characters in v.
  댓글 수: 1
NAVNEET NAYAN
NAVNEET NAYAN 2023년 8월 24일
Thank You So Much @Walter Roberson. It is working. One more query. Is it possible to add pause of 1 second during the space bar?

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

추가 답변 (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