determining number of inputs

2 次查看(过去 30 天)
hello. usually in matlab, we ask the user to enter a value once using this code x=input('message'). but what if we wanted the user to determine how many times to enter a value?

采纳的回答

Thorsten
Thorsten 2014-12-20
N = ('How many times?');
for i=1:N
a(i) = ('your input');
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by