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

 Akzeptierte Antwort

Star Strider
Star Strider am 24 Mär. 2015

1 Stimme

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 Kommentare

vamsi kiran
vamsi kiran am 24 Mär. 2015
thank u it worked
Star Strider
Star Strider am 24 Mär. 2015
My pleasure!
lavanya gunamalai
lavanya gunamalai am 10 Jan. 2019
thank u

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by