Feeds
提问
Repeated user input for even numbers
The code needs to keep asking for user input until an even number is inputted. I've got this code so far: a = input('Input a va...
7 years 前 | 1 个回答 | 0
1
个回答提问
Why does the loop not work for the increment stated?
for t= 0:1:20 a= [t, sin(t), 0]; b= [0, 0, cos(t)]; v= a + b; end The loop only calculates the value of v for 20, not 0 to ...
7 years 前 | 1 个回答 | 0

