How to increase the number of input options in dialog box?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How to increase number of input options or lines in dialog box?
eg: if the number of elements is 2 then it should ask
enter length
length 1 __
length 2 __
and if the number of elements is 3 it should ask
enter length
length 1 __
length 2 __
length 3 __
(ei the number of input length lines should increase with respect to the number of elements)
0 comentarios
Respuestas (1)
Geoff Hayes
el 30 de En. de 2019
N = 3;
prompts = {};
for k = 1:N
prompts = [prompts sprintf('length %d',k)];
end
results = inputdlg(prompts,'enter length');
0 comentarios
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!