I am trying to write my own rref and have the following code. It appears to have worked for the first column but not for all other columns for a test augmented matrix I entered. Can you please assist? Thanks!
조회 수: 12(최근 30일)
표시 이전 댓글
Jenel Darland 2017년 4월 26일
답변: Sanjana Ramakrishnan 2017년 5월 8일
%Loop through columns, then rows
%j=1:n-1 because matrix is augmented and I only want to check the square matrix values; however, row operations should be performed on the entire row of the matrix
%if i=j, the code already performed an operation to transform the value to 1, so I want to skip matrix(i,j) if i=j
Sanjana Ramakrishnan 2017년 5월 8일
Refer MATLAB source code for reference by typing the below command in MATLAB command window:
You might also find the below file exchange link useful:
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!