if true
% code
endI AM DOING SPEAKER RECOGNITION MATLAB CODE I AM GETTING ERROR AS
Error using input
Error in main (line 25)
Undefined function or variable 'k'.
name=input('Enter your name:');
WHEN I ENTERED A NAME THE ERROR IS AS ABOVE PLEASE HELP

 Respuesta aceptada

Star Strider
Star Strider el 24 de Mzo. de 2015

1 voto

See if this works for you:
name=input('Enter your name:','s');
From the documentation for input:
  • str = input(prompt,'s') returns the entered text as a string, without evaluating the input as an expression.

3 comentarios

vamsi kiran
vamsi kiran el 24 de Mzo. de 2015
thank u it worked
Star Strider
Star Strider el 24 de Mzo. de 2015
My pleasure!
lavanya gunamalai
lavanya gunamalai el 10 de En. de 2019
thank u

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Text Analytics Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Mzo. de 2015

Comentada:

el 10 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by