Filter löschen
Filter löschen

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

5 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

KSSV
KSSV am 1 Dez. 2016
function str = getstring()
str = input('Enter A String: ','s');
end
  3 Kommentare
Khalid Khan
Khalid Khan am 1 Dez. 2016
Yes It is working But it is not using the getstring function to test

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Noch keine Tags eingegeben.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by