Guide : fonction pour afficher une valeur

조회 수: 24 (최근 30일)
franck fleuriot
franck fleuriot 2016년 4월 5일
댓글: Walter Roberson 2016년 4월 5일
Bonjour,
Je souhaite créer une fonction me permettant d'afficher dans un static text le résultat d'un produit de deux valeurs que l'utilisateurs aurait rentré dans deux edit text.
Cf photo : "incidents répertoriés x Période = résultat dans le cadre beige à droite"

답변 (1개)

Orion
Orion 2016년 4월 5일
편집: Orion 2016년 4월 5일
Hello Franck,
First, you should post your question in english. This way, everybody can understand your question.
About it, you are creating a GUI with GUIDE. To perform the operation you want, you need to modify the callback of your pushbutton.
Assuming your buttons are named like the ones in this image.
you need to go in the generated code :
and modify the content of the callback to do what you want :
  댓글 수: 2
franck fleuriot
franck fleuriot 2016년 4월 5일
Thx a lot, sry didn't thought to post in english, i'll next time.
Walter Roberson
Walter Roberson 2016년 4월 5일
Note: it is not required to post in English. You can post in any language that you feel comfortable in. However, you would be more likely to get a response if you post in English.

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by