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년 전 | 답변 수: 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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 0 | 0
