Borrar filtros
Borrar filtros

Using listdlg and sprintf to create a GUI

1 visualización (últimos 30 días)
Carl Narup
Carl Narup el 10 de Oct. de 2017
Respondida: Arun Mathamkode el 19 de Oct. de 2017
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?

Respuestas (1)

Arun Mathamkode
Arun Mathamkode el 19 de Oct. de 2017
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.

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by