Using listdlg and sprintf to create a GUI
2 次查看(过去 30 天)
显示 更早的评论
How do I use the sprintf option for listdlg in matlab? Do I need to create a variable beforehand using sprintf or do I need to use sprintf within the brackets of listdlg?
0 个评论
回答(1 个)
Arun Mathamkode
2017-10-19
The input argument must be a cell array of strings. Each element of the string cell array corresponds to a row in the list menu. The function "sprintf" is one way of creating a string. It doesn't matter if this string is created beforehand or inside the "listdlg" input argument as long as it is part of a cell array.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!