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

 採用された回答

Star Strider
Star Strider 2015 年 3 月 24 日

1 投票

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 件のコメント

vamsi kiran
vamsi kiran 2015 年 3 月 24 日
thank u it worked
Star Strider
Star Strider 2015 年 3 月 24 日
My pleasure!
lavanya gunamalai
lavanya gunamalai 2019 年 1 月 10 日
thank u

サインインしてコメントする。

その他の回答 (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