How can i control a uicheckbox based on excel cell value Yes or No
조회 수: 3 (최근 30일)
이전 댓글 표시
I have an excel cell value for a parameter to be YES NO. Now i am importing this in my function and then creating folders to store the excel values After that i want to modify my checkbox by the values from excel cell
답변 (1개)
Cris LaPierre
2023년 8월 15일
See this example: https://www.mathworks.com/help/matlab/ref/uicheckbox.html#buios0i-9
as well as this page: https://www.mathworks.com/help/matlab/ref/matlab.ui.control.checkbox-properties.html#responsive_offcanvas
Basically, you need to programmatically convert your yes/no to true/false, and use that to set the Value property of your checkbox.
댓글 수: 11
Cris LaPierre
2023년 8월 16일
편집: Cris LaPierre
2023년 8월 16일
I'm afraid I don't know what that means. Please provide a runnable example.
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!