0
我有問題,我怎麼能從用戶多個輸入(每行一次)作爲一個字符串,並將其保存在數組內?關於在數組中保存字符串
我想是這樣的:
function[str] = get_data()
st = '';
st{1} = input{'enter the first name','s'};
st{2} = input{'enter the first name','s'};
str = strings(st)
end