less than or equal as symbol in prompt of inputdlg
조회 수: 25 (최근 30일)
이전 댓글 표시
Hello :)
I'm trying to use the symbol ≤ in the prompt of my inputdlg but I can't make it work.
Here is the code:
prompt={...
sprintf('%s\n%s','some text in first line',...
'enter number (5 < x < 50):'),... % here it would be great with the <= symbol instead
sprintf('%s\n%s','smoe more text',...
'i would really appreciate your help!')};
answer=inputdlg(prompt);
I would appreciate your help!
댓글 수: 0
채택된 답변
Guillaume
2019년 6월 2일
≤ is unicode U+2264, One way to insert it into text is with another sprintf:
sprintf('enter number (5 \x2264 x \x2264 50):')
You could always type <= to avoid resorting to Unicode.
댓글 수: 2
Dimitri
2021년 11월 6일
Oh...you are the man! THANK YOU!!! HAd the same issue and spent an hour trying to figure it out....
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!