Community Profile

# Thomas John Rees

Last seen: 6 months ago Active since 2022

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

6 months ago | 2 answers | 0

### 2

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

6 months ago | 0 answers | 0

### 0

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

6 months ago | 1 answer | 0

### 1

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

6 months ago | 1 answer | 0