필터 지우기
필터 지우기

I need to add the names of the players in of my game in my gui.

조회 수: 3 (최근 30일)
Zayne
Zayne 2011년 9월 8일
Okay so I am trying to use the input function.......
%x=input('Put the name of player 1:')
and then
set(handles.uipanel1,'title','x')
%assuming I want to change panel 1's title to the players name..... When I enter the name for player 1 in the comand window it says undefined function or variable......
Any suggestions??

채택된 답변

Paulo Silva
Paulo Silva 2011년 9월 8일
x=input('Put the name of player 1:','s'); %choose input as string
set(handles.uipanel1,'title',x) %set the value of x as title
  댓글 수: 3
Paulo Silva
Paulo Silva 2011년 9월 8일
If one axes is on hold you can add many objects to it, they become children of that axes, use the line function to draw something
h=line(...
if you want to just move the line
set(h,'XData',newXdata,'YData',newYdata)
Walter Roberson
Walter Roberson 2011년 9월 8일
As this is image on image, to move one of the images, set() the XData and YData property for it. See the documentation for the image() function.

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

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by