統計
All
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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前


