Community Profile

photo

Daniel Gray


Actif depuis 2017

Followers: 0   Following: 0

Statistiques

  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

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

environ 6 ans il y a | 1 réponse | 0

1

réponse

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

presque 7 ans il y a | 1 réponse | 0

1

réponse

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

presque 7 ans il y a | 3 réponses | 0

3

réponses

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

presque 7 ans il y a | 1 réponse | 0

1

réponse

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

presque 7 ans il y a | 4 réponses | 0

4

réponses

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

presque 7 ans il y a | 1 réponse | 0

1

réponse

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

presque 7 ans il y a | 1 réponse | 0

1

réponse

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

presque 7 ans il y a | 2 réponses | 0

2

réponses

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

presque 7 ans il y a | 4 réponses | 0

4

réponses