Many university STEM major programs have reduced the credit hours for a course in Matrix Algebra or have simply dropped the course from their curriculum. The content of Matrix Algebra in many cases is taught just in time where needed. This approach can leave a student with many conceptual holes in the required knowledge of matrix algebra.
In this series of blogs, we bring to you ten topics that are of immediate and intermediate interest for Matrix Algebra.
Here is the first topic where we define a matrix, vector, submatrix, square matrix, triangular matrix (upper and lower), diagonal matrix, identity matrix, and diagonally dominant matrix. Get the information in form of textbook content, lecture videos, multiple choice test, problem set and PowerPoint presentation.
This post is brought to you by
- Holistic Numerical Methods Open Course Ware:
- the textbooks on
- the Massive Open Online Course (MOOCs) available at
In the previous blog, we spelled out the bubble sort algorithm for putting an array of numbers in an ascending order. In this post, I am posting the matlab program. It is better to download the program as single quotes in the pasted version do not translate properly when pasted into a mfile editor of MATLAB or see the html version for clarity and sample output.
%% PUTTING AN VECTOR OF NUMBERS IN AN ASCENDING ORDER?
% Language : Matlab 2007a
% Authors : Autar Kaw
% Last Revised : November 8, 2009
% Abstract: This program shows you how to put a vector
% of numbers in an ascending order using the bubble sort method
disp(‘This program shows the bubble sort method’)
disp(‘to put a vector of numbers in an ‘)
disp(‘Authors : Autar Kaw’)
disp(‘Last Revised : November 8, 2009’)
% The vector of numbers
disp(‘Input the vector of numbers’)
A=[18 7 6 15 4 13];
% Number of entries, n
% making (n-1) passes
% comparing each number with the next and swapping
% temp is a variable where the numbers are kept
% temporarily for the switch
disp (‘The ascending matrix is’)
This post is brought to you by Holistic Numerical Methods: Numerical Methods for the STEM undergraduate at http://numericalmethods.eng.usf.edu, the textbook on Numerical Methods with Applications available from the lulu storefront, and the YouTube video lectures available at http://numericalmethods.eng.usf.edu/videos and http://www.youtube.com/numericalmethodsguy
Subscribe to the blog via a reader or email to stay updated with this blog. Let the information follow you.