Feeds
提问
Time managed program in MATLAB
Is there any specific function or code which enables the code to run for a specified amount of time, like say, 10 minutes. The c...
7 years 前 | 1 个回答 | 0
1
个回答提问
How to modify Loop variable inside the loop body
for i=1:10 if randi(10)==3 i=i-1; end end In the above code, i must get reduced by 1 whenever t...
7 years 前 | 1 个回答 | 0
1
个回答提问
Replace repeated pair of coordinates generated from 'randi' statement.
N=input('How many pairs?'); randnos=randi(10,N,2); The above statement generates N pairs of coordinates as a Nx2 array. ...
7 years 前 | 3 个回答 | 0
3
个回答提问
Divide points according to quadrant system
I have written a code to divide L pairs (coordinates) according to 4 quadrants: L=input('Enter the number of pairs: '); ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Calculate distance between an 5x2 array of (x,y) pairs and a known point
tr=randi(10,5,2);%makes 5x2 matrix generating random nos b/w 1 to 10 xy=sortrows(tr); The above statements makes the fol...
7 years 前 | 2 个回答 | 0
2
个回答提问
Time dependent function in MATLAB which modifies a variable's value after a few known seconds.
Let x=100. After 5 seconds x should become 99. After further 5 seconds, x should become 98 and so on till x becomes 20. In C++, ...
7 years 前 | 0 个回答 | 0
0
个回答已解决
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
7 years 前


