# Daniel Gray

**Statistics**

**MATLAB Answers**

**9** Questions

**0** Answers

RANK**267 179**

of 270 786

REPUTATION**0**

CONTRIBUTIONS

**9** Questions

**0** Answers

ANSWER ACCEPTANCE **
77.78%
**

VOTES RECEIVED**0**

RANK

of 18 282

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 119 622

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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 5 år ago | 1 answer | 0

### 1

answerQuestion

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 5 år ago | 1 answer | 0

### 1

answerQuestion

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 5 år ago | 3 answers | 0

### 3

answersQuestion

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 5 år ago | 1 answer | 0

### 1

answerQuestion

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 5 år ago | 3 answers | 0

### 3

answersQuestion

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 5 år ago | 1 answer | 0

### 1

answerQuestion

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 5 år ago | 1 answer | 0

### 1

answerQuestion

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 5 år ago | 2 answers | 0

### 2

answersQuestion

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 5 år ago | 4 answers | 0