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

 Réponse acceptée

Star Strider
Star Strider le 24 Mar 2015

1 vote

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 commentaires

vamsi kiran
vamsi kiran le 24 Mar 2015
thank u it worked
Star Strider
Star Strider le 24 Mar 2015
My pleasure!
lavanya gunamalai
lavanya gunamalai le 10 Jan 2019
thank u

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by