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

8 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Analysis 的更多信息

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by