How can I plot a string input?
Mostrar comentarios más antiguos
Hello,
How can I plot a string input?
prompt = "What is your name";
txt = input(prompt,"s");
if isempty(txt)
txt = 'Enter your name again.';
end
>> txt =
'MAX'
I want to automatically plot the received string.
Respuesta aceptada
Más respuestas (1)
I assume you want to display.
display('David')
txt =input('What is your name','s');
display(txt)
1 comentario
Mohammad Rastegarpanah
el 29 de Sept. de 2022
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!