Community Profile

photo

Daniel Gray


9 total contributions since 2017

Daniel Gray's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


How to successively fill a vector with for loop?
I have my code set up as follows: thmaxn = []; for ang=[0, pi/2, pi, 3*pi/2, 2*pi] thmax = phasedist(ang,N,rhoss)...

casi 2 años ago | 1 answer | 0

1

answer

Question


I want to create random bumps on a flat surface
I have a 300x300 zeros matrix and I would like to create random bumps on the surface on random heights. To be more detailed, ima...

más de 2 años ago | 1 answer | 0

1

answer

Question


I want to randomly have numbers added to a matrix
I have a 300x300 zeros matrix and I want to have numbers between 0 and 1 (inclusive) randomly placed amongst the matrix, the num...

más de 2 años ago | 3 answers | 0

3

answers

Question


I want to vary how much of a plane is filled with the angle of the plane with the horizontal, any help?
I am running an experiment and currently have a 300x300 zeros matrix and the lower half filled with ones to get a half-plane ima...

más de 2 años ago | 1 answer | 0

1

answer

Question


I have a 300 x 150 zeros matrix and want to change only the lower triangular elements to 1, How do I do that?
Everything is in the title really, I need to change the lower triangular elements of this zeros matrix to 1, how can I do this e...

más de 2 años ago | 3 answers | 0

3

answers

Question


If I start with a matrix of zeros, how can I easily create an ellipse of ones in that matrix?
I have a matrix of zeros and would like to create and ellipse of ones within that matrix. I have done it before with triangles a...

más de 2 años ago | 1 answer | 0

1

answer

Question


In 2016b is there a way to get categories on the x-axis of a bar chart?
I have seen how to do it on the 2017 release, but wondered if there was a way to get categories on the x-axis of a bar chart as ...

más de 2 años ago | 1 answer | 0

1

answer

Question


If I start with a matrix of zeros, how can I easily create a circle of ones in that matrix?
I have a matrix of zeros, but would like a circle of ones in that matrix. Preferably I would like the circle to fill half the a...

más de 2 años ago | 2 answers | 0

2

answers

Question


If I start with a matrix of zeros, how can I easily create a triangle of ones in that matrix?
I want to be able to get a .mat file that will create a filled triangle when I use imagesc. I have been told the easiest way is...

más de 2 años ago | 4 answers | 0

4

answers