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

 采纳的回答

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.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Language Support 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by