Using MatLab: I. (MATLAB) Now use the functions swap, replace and scale to do th
ID: 3197180 • Letter: U
Question
Using MatLab:
Explanation / Answer
SWAP: this MATLAB function acually swaps the particular row with another specified row:
like A= swap( A, 1,2) ;
this command in matlab will swap the row 1st with row 2.
SCALE: his MATLAB function acually scales the particular entire row with specified scaling number.
:like A= scale( A, 2,1/3) ;
this command in matlab will scale 2nd row with scaling factor 1/3. initial row is { 0, 3,6,9} and after scaling result is {0,1,2,3} in row 2nd.
REPLACE: A= replace(A, 1, -1, 2)
this means row 1st is replaced by (row 1st added to -1 times row 2nd )
R1= R1 + (-1*R2)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.