# Roger Stafford

Contact Roger Stafford

## Reputation

3178
405 accepted answers
3answers
0 votes

### Why is my Simpson's 3/8 code not producing the correct values?

Asked by Jerome on 22 Nov 2013
Latest activity Commented on by Zhengyu Pan on 24 Dec 2014 at 8:09
2answers
0 votes

### How to do it more efficiently?

Asked by Ilham Hardy on 23 Dec 2014 at 8:40
Latest activity Commented on by Ilham Hardy on 24 Dec 2014 at 7:25
Tags
2answers
0 votes

### Multidimensional Array Conversion way

Asked by Faisal Memon on 23 Dec 2014 at 12:28
Latest activity Commented on by Faisal Memon on 23 Dec 2014 at 13:55
Tags
1answer
0 votes

### damage equation for uniaxial compression

Asked by suman Dahal on 23 Dec 2014 at 6:15
Latest activity Answered by Roger Stafford on 23 Dec 2014 at 10:57
Tags
1answer
0 votes

### how to simulate markov chain

Asked by Ahat Kasay on 23 Dec 2014 at 7:19
Latest activity Answered by Roger Stafford on 23 Dec 2014 at 10:40
2answers
0 votes

### how to determine the position of points which belong to a circle ?

Asked by jan on 22 Dec 2014 at 18:31
Latest activity Edited by jan on 23 Dec 2014 at 7:45
Tags
2answers
0 votes

### Help comparing two matrices

Asked by Antonio on 22 Dec 2014 at 19:13
Latest activity Edited by Antonio on 22 Dec 2014 at 19:41
Tags
2answers
0 votes

### Help with a two variables equation?

Asked by Nir on 21 Dec 2014 at 16:18
Latest activity Edited by Roger Stafford on 22 Dec 2014 at 18:43
2answers
0 votes

### how to generate a random vector sized 1x100 or 100x1 without the numbers (mod,5)=0 ?

Asked by Hüseyin on 21 Dec 2014 at 23:28
Latest activity Commented on by John D'Errico on 22 Dec 2014 at 3:55
2answers
0 votes

### Optimizing a simple code

Asked by AJ1 on 20 Dec 2014 at 13:36
Latest activity Commented on by Roger Stafford on 22 Dec 2014 at 3:15
1answer
0 votes

### Odd behaviour of 2x2-matrix and 2x1-vector operation

Asked by Sung-Eun Jo on 18 Dec 2014 at 1:14
Latest activity Commented on by Sung-Eun Jo on 22 Dec 2014 at 1:57
Products
2answers
0 votes

### Logical Indexing a spefic column in a matrix

Asked by Patrick on 17 Dec 2014 at 16:21
Latest activity Commented on by Guillaume on 20 Dec 2014 at 14:48
3answers
0 votes

### Fastest & most effective way to create this uniqe matrix:

Asked by Eitan on 19 Dec 2014 at 9:01
Latest activity Commented on by Eitan on 20 Dec 2014 at 14:06
2answers
0 votes

### how to generate random numbers from a distribution which is the convolution of exponential distributions?

Asked by Guillaume on 19 Dec 2014 at 18:44
Latest activity Answered by Roger Stafford on 20 Dec 2014 at 4:31
1answer
0 votes

### How do i solve 2 equations for 2 unknowns?

Asked by Swaroop on 19 Dec 2014 at 8:55
Latest activity Commented on by Roger Stafford on 19 Dec 2014 at 17:12
1answer
0 votes

### how to make looping for random data and discrete

Asked by Muhammad on 17 Dec 2014 at 14:55
Latest activity Commented on by Muhammad on 18 Dec 2014 at 1:00
Tags
1answer
0 votes

### how to ignore nan values in corr function?

Asked by trailokya on 17 Dec 2014 at 21:16
Latest activity Answered by Roger Stafford on 17 Dec 2014 at 22:28
2answers
0 votes

### Dear Friends, please help me in finding (matlab code) the inverse of this matrix. F=[ 1 1 -1 -1; -a b c d; e -f -g h; j k l m]. where a, b, c etc are constants.Best Regards.

Asked by hassan ullah on 17 Dec 2014 at 16:24
Latest activity Answered by Geoff Hayes on 17 Dec 2014 at 19:28
1answer
0 votes

### Issue in term mismatch after finding roots

Asked by Melissa on 17 Dec 2014 at 17:45
Latest activity Answered by Roger Stafford on 17 Dec 2014 at 18:08
2answers
0 votes

### find time elapse in if statement

Asked by H D on 17 Dec 2014 at 5:51
Latest activity Commented on by H D on 17 Dec 2014 at 15:53
1answer
0 votes

### Minimizing an objective function

Asked by Eraldo on 11 Dec 2014 at 4:22
Latest activity Commented on by Eraldo on 16 Dec 2014 at 1:47
2answers
0 votes

### how i can draw a sector of a circle in matlab?

Asked by vatankhah on 15 Dec 2014 at 12:12
Latest activity Answered by Roger Stafford on 16 Dec 2014 at 1:41
1answer
0 votes

### How to fit with an infinite serie function ?

Asked by eric on 10 Nov 2014
Latest activity Commented on by eric on 15 Dec 2014 at 16:44
1answer
0 votes

### Taylor series for multiple variables

Asked by sita on 15 Dec 2014 at 5:27
Latest activity Commented on by sita on 15 Dec 2014 at 6:28
Products
1answer
1 vote

### on floating point arithmetic - moler book

Asked by Seetha Rama Raju Sanapala on 14 Dec 2014 at 8:08
Latest activity Commented on by Roger Stafford on 14 Dec 2014 at 19:05
Products
1answer
0 votes

### how can I determine the areas surrounded by these two plots?

Asked by Moj on 9 Dec 2014 at 18:59
Latest activity Commented on by Moj on 14 Dec 2014 at 13:58
1answer
0 votes

### an ode where numerical method fails in matlab

Asked by Can on 13 Dec 2014 at 11:32
Latest activity Commented on by Can on 14 Dec 2014 at 7:34
1answer
0 votes

### Computing Angles from Coordinate Space

Asked by Dan on 10 Dec 2014 at 11:04
Latest activity Commented on by Roger Stafford on 12 Dec 2014 at 9:42
2answers
0 votes

### randomly picking from a series of elements

Asked by Wajdi on 11 Dec 2014 at 8:54
Latest activity Commented on by Guillaume on 11 Dec 2014 at 16:24
Tags
1answer
0 votes

### How can I form a Hankel matrix for the following example?

Asked by D Bhuiyan on 10 Dec 2014 at 21:29
Latest activity Commented on by D Bhuiyan on 11 Dec 2014 at 13:32
1answer
0 votes

### normalize matrix by standard deviation

Asked by Michelle Mota on 10 Dec 2014 at 18:25
Latest activity Edited by Roger Stafford on 10 Dec 2014 at 19:22
3answers
0 votes

### How to get the accurate coordinate value of the point on a fitted contour? And how to integrate along the contour?

Asked by Ren Zetian on 28 Nov 2014 at 6:09
Latest activity Commented on by Ren Zetian on 10 Dec 2014 at 12:03
3answers
0 votes

### Question about diff function

Asked by Francisco on 9 Dec 2014 at 18:40
Latest activity Edited by Star Strider on 9 Dec 2014 at 22:31
Tags
1answer
0 votes

### Solving for a symbol and converting it to double to use in a loop

Asked by dustin on 9 Dec 2014 at 19:20
Latest activity Commented on by dustin on 9 Dec 2014 at 20:15
Tags
1answer
0 votes

### Using "curl" function and its outputs

Asked by Maureen on 9 Dec 2014 at 19:03
Latest activity Answered by Roger Stafford on 9 Dec 2014 at 19:24
Tags
1answer
0 votes

### In a for loop matrix dimension changes?

Asked by Catarina on 6 Dec 2014 at 8:32
Latest activity Commented on by Catarina on 9 Dec 2014 at 10:30
Tags
1answer
0 votes

### a problem about integration

Asked by Chen on 5 Dec 2014 at 20:57
Latest activity Commented on by Roger Stafford on 9 Dec 2014 at 6:56
4answers
0 votes

### subtract two identical float number it gives a very small number not a zero

Asked by Tahani on 8 Dec 2014 at 18:19
Latest activity Commented on by Mohammad Abouali on 9 Dec 2014 at 3:53
2answers
0 votes

### Graph intersection of 3 curves

Asked by J Neto on 8 Dec 2014 at 1:34
Latest activity Commented on by Star Strider on 8 Dec 2014 at 14:35
2answers
0 votes

### How can this code run through all possible combinations of numbers in two separate arrays?

Asked by Matthew on 7 Dec 2014 at 3:27
Latest activity Commented on by Roger Stafford on 7 Dec 2014 at 4:10
2answers
0 votes

### How to give ranking from highest to lowest

Asked by Mekala balaji on 6 Dec 2014 at 7:21
Latest activity Commented on by Azzi Abdelmalek on 6 Dec 2014 at 10:56
2answers
0 votes

### how to populate the left side with the same values as the right side in an array

Asked by Hugo on 5 Dec 2014 at 17:32
Latest activity Commented on by Roger Stafford on 5 Dec 2014 at 21:20
3answers
0 votes

### How do I solve solve an equation for the first complex root?

Asked by Austin Hazelrig on 26 Nov 2014 at 21:14
Latest activity Edited by John D'Errico on 4 Dec 2014 at 23:15
Products
1answer
0 votes

### problems with plotting density function

Asked by Kenan on 3 Dec 2014 at 23:44
Latest activity Answered by Roger Stafford on 4 Dec 2014 at 0:19
Tags
1answer
0 votes

### Question about for construct?

Asked by Pam on 3 Dec 2014 at 19:27
Latest activity Commented on by Pam on 3 Dec 2014 at 20:53
Tags
2answers
0 votes

### How to plot a line parallel to a line with a distance of d between them ?

Asked by Priya on 5 Mar 2014
Latest activity Commented on by jaya prakash on 2 Dec 2014 at 1:31
1answer
0 votes

### How can I permute a 3D magic matrix such that the largest element will be on page 3.

Asked by PETER ADETOKUNBO on 25 Nov 2014
Latest activity Commented on by PETER ADETOKUNBO on 30 Nov 2014 at 15:50
3answers
0 votes

### matlab triple integral conical gravity

Asked by Mia Bodin on 29 Nov 2014 at 21:04
Latest activity Commented on by Mia Bodin on 30 Nov 2014 at 6:37
2answers
0 votes

### How can I plot values of a for loop?

Asked by Patricia on 30 Nov 2014 at 0:38
Latest activity Commented on by Patricia on 30 Nov 2014 at 1:25
Tags
1answer
0 votes

### I need help with this > mx ̈+b(x ) ̇+k(x^3+∝x)=0 with I.c. x(0)=1 and x ̇(0) =0

Asked by elin on 28 Nov 2014 at 9:32
Latest activity Commented on by elin on 29 Nov 2014 at 16:10
Tags

Contact us