Write a getString() function that prompts the user for a string and returns it

2 ビュー (過去 30 日間)
Khalid Khan
Khalid Khan 2016 年 12 月 1 日
コメント済み: Khalid Khan 2016 年 12 月 1 日
Call getString() function to get the string from the user. I can't get the string from the function.
function getstring()
input('Enter A String: ','s');
end

採用された回答

KSSV
KSSV 2016 年 12 月 1 日
function str = getstring()
str = input('Enter A String: ','s');
end
  3 件のコメント
KSSV
KSSV 2016 年 12 月 1 日
it is working right...
Khalid Khan
Khalid Khan 2016 年 12 月 1 日
Yes It is working But it is not using the getstring function to test

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by