Community Profile

photo

Thomas John Rees


Last seen: 2 years ago Active since 2022

Statistics

  • First Answer

View badges

Content Feed

View by

Question


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 ...

2 years ago | 2 answers | 0

2

answers

Question


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...

2 years ago | 0 answers | 0

0

answers

Question


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 ...

2 years ago | 1 answer | 0

1

answer

Question


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 ...

2 years ago | 1 answer | 0

1

answer

Question


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...

2 years ago | 0 answers | 0

0

answers