getLeslieMatrix - leslie(1 = randi(5,m 1,1 Create top row

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function leslie = getLeslieMatrix(m) % Create an m*m leslie matrix leslie = diag(linspace(0.9,0.1,m),-1); % Create diagonal matrix
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: leslie(1,:) = randi(5,m + 1,1)'; % Create top row...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online