Dialog box with variable and button

조회 수: 4 (최근 30일)
UCL
UCL 2013년 2월 14일
I would like to create a dialog box which will have variables in it and a button: for example:
Today you have : 5 pounds (5 is the variable) Buy food? (Buy food is the button)
Thank you in advance
  댓글 수: 1
Jan
Jan 2013년 2월 14일
What is your question? What have you tried so far, which problems occurred and which kind of help do you need?

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

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 2월 14일
x = 5;
questdlg(sprintf('You have %dlb of food?',x),'Hungry Yet?','Buy Food','Starve Longer','Buy Food')

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by