photo

Daniel Gray


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

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

nästan 7 år 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...

mer än 7 år 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...

mer än 7 år 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...

mer än 7 år 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...

mer än 7 år ago | 4 answers | 0

4

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

mer än 7 år 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 ...

mer än 7 år 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...

mer än 7 år 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...

mer än 7 år ago | 4 answers | 0

4

answers