Listdlg inside of fprintf?

조회 수: 2 (최근 30일)
Jonathan Mendoza
Jonathan Mendoza 2019년 11월 6일
댓글: Jonathan Mendoza 2019년 11월 6일
is there anyway i can use fprintf function or is there another function very similar to it, that i can use inside of listdlg. i want it so i when the string in fprintf is updated it is updated in listdlg aswell, if that makes any sense. thanks

채택된 답변

Walter Roberson
Walter Roberson 2019년 11월 6일
What is the mechanism for updating the string in fprintf() ?
You can use sprintf() or compose() to construct strings or character vectors to pass to listdlg()
However, a "live" listdlg() effectively cannot be updated, because listdlg() always starts 'modal'. (There are hacks that could do it, such as using a timer object, but not through user interaction.)
  댓글 수: 1
Jonathan Mendoza
Jonathan Mendoza 2019년 11월 6일
thank you sprintf works beautifully.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by