COmmand for interchanging rows or column
Title
Question
If i need to interchange second row to third row, wen i tried it is done afteroverwiting. Is there any command available in scilab to interchange rows or columns. if so please answer and explain.
Scilab Matrix-Operations 02-03 min 10-20 sec
Answers:
Try using transpose.
For interchanging row 1 and 3,
A([1 3],:)=A([3 1],:)
thank you for the correct suggestion.
Yes this is correct way to interchange, thank you
Login to add comment
Login to add comment