Hi, Mr. STEM EDU TV. Your videos have helped me immensely in my Numerical Methods class at the University of Nevada, Las Vegas. I sincerely appreciate your production of content. I hope you know He who holds the keys to eternity, Jesus the Christ. I will pray for you. Take care. All the best and God bless.
Hello, I face a problem with the flip command. I must make a matrix 3x3 and then flip column 3 with column 2. I searched and found ways but they can only flip the whole matrix, not just the column 2 and 3. Do you have any idea about what I should do? Thank you very much!!
I do not think there is a built-in function to swap out. However, you can save the column 3 in a temporary variable, let's say 'temp' and swap out afterward. Consider your 3x3 matrix is 'a', and you can save the elements of the 3rd column as temp = a(:,3); Then, you can replace the third column with the second column as a(:,3) = a(:,2);. Then, you can replace the second column with the "saved" 3rid column as a(:,2) = temp; Hope this helps.