{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ex1 - disp'pivot on row,col,num2str[row col...

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

View Full Document Right Arrow Icon
Ain=[1 -5 -3 0 0 0 0 0 2 3 1 0 0 15 0 2 1 0 1 0 9 0 1 -1 0 0 1 3] A0=Ain; bin=Ain(:,end); row=4;col=2; basis=[3 4 5]; disp(['original basis is: ',num2str(basis)]) keyboard disp(['pivot on row,col: ',num2str([row col])]); A=piv(Ain,row,col) basis=[ 3 4 1]; disp(['new basis is: ',num2str(basis)]) Ain=A; bin=Ain(:,end); keyboard row=3;col=3;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: disp(['pivot on row,col: ',num2str([row col])]); A=piv(Ain,row,col) basis=[ 3 2 1]; disp(['new basis is: ',num2str(basis)]) Ain=A; bin=Ain(:,end); keyboard row=2;col=6; disp(['pivot on row,col: ',num2str([row col])]); A=piv(Ain,row,col) basis=[5 2 1]; disp(['new basis is: ',num2str(basis)]) keyboard...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online