A square matrix A is strictly diagonally dominant if for all rows the absolute value of the diagonal element in a row is strictly greater than than the sum of absolute value of the rest of the elements in that row.
In this posting, I show a MATLAB program that finds whether a square matrix is [...]
Entries from November 2008
November 29, 2008
Is a square matrix strictly diagonally dominant?
November 21, 2008
Skipping numbers in picking the lotto numbers
In a previous post, a reader wanted a program that would skip some numbers that he thinks would presumably not show up because they were picked in the previous week’s lotto. Although the probability of the same numbers being picked is the same, human psychology and the lack of true randomness is a viable factor [...]
November 16, 2008
Is a square matrix diagonal or not?
A square matrix A is diagonal if all the elements on the off-diagonal are zero. That is, A(i,j)=0 for i~=j.
In this posting, I show a MATLAB program that finds whether a square matrix is diagonal by using three different methods. These are academic ways to reinforce programming skills in a student.
The MATLAB program [...]
November 10, 2008
Picking lotto numbers
In these tough economic times, more people are playing lotto to hit it big. We have written a MATLAB program that chooses unique and random numbers for a lotto. The inputs are the number of numbers to pick, and the range in which the numbers can be picked.
The MATLAB program can be downloaded as a [...]