Feeds
提问
What's going on when setting these parameters?
So my question is quite simple. I'm plotting, for example: x=[0:0.1:4] plot(x, sqrt(x), 'b.-') title('Square root') grid ...
4 years 前 | 2 个回答 | 0
2
个回答提问
Naming this as a function (beginner)
Existing code: n=3 reshape(randperm(n^2),n,n) _____________________ This one line of code does exactly what I want. Depe...
4 years 前 | 0 个回答 | 0
0
个回答提问
Beginner coding; my second, simpler approach at trying to make all elements distinct.
So this is what I've come up with on my own to print a 3x3 random matrix of integers only; no element value exceeding n^2 (9 in ...
4 years 前 | 1 个回答 | 0
1
个回答提问
Want my random matrix to only display distinct elements
Current'y running this code to output a random 5x5 matrix with elements between 1 & n^2, n being 5 in this case (array size). I ...
4 years 前 | 1 个回答 | 0
1
个回答提问
Identifying & replacing the even elements w/i a matrix.
Hello, so I've set up a random matrix as such. a = 0; b = 50; r = (b-a).*rand(5,5) + a r(r>10) = [0] This is the code I'm u...
4 years 前 | 0 个回答 | 0
