<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://fweb.wallawalla.edu/class-wiki/index.php?action=history&amp;feed=atom&amp;title=Colby%27s_Octave_Assignment</id>
	<title>Colby&#039;s Octave Assignment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://fweb.wallawalla.edu/class-wiki/index.php?action=history&amp;feed=atom&amp;title=Colby%27s_Octave_Assignment"/>
	<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Colby%27s_Octave_Assignment&amp;action=history"/>
	<updated>2026-05-18T07:32:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://fweb.wallawalla.edu/class-wiki/index.php?title=Colby%27s_Octave_Assignment&amp;diff=9676&amp;oldid=prev</id>
		<title>Colby.fullerton: Created page with &#039;==Entering Matrices==  Matrices can be entered into Octave quite easily. Typing v=[1 2 3] sets the variable v to be a 1x3 matrix.  To create a 2x2 matrix you can either type v=[1…&#039;</title>
		<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Colby%27s_Octave_Assignment&amp;diff=9676&amp;oldid=prev"/>
		<updated>2010-09-30T23:22:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Entering Matrices==  Matrices can be entered into Octave quite easily. Typing v=[1 2 3] sets the variable v to be a 1x3 matrix.  To create a 2x2 matrix you can either type v=[1…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Entering Matrices==&lt;br /&gt;
&lt;br /&gt;
Matrices can be entered into Octave quite easily. Typing v=[1 2 3] sets the variable v to be a 1x3 matrix.&lt;br /&gt;
&lt;br /&gt;
To create a 2x2 matrix you can either type v=[1 2; 3 4] or you could type&lt;br /&gt;
&lt;br /&gt;
 v=[1 2&lt;br /&gt;
    3 4]&lt;br /&gt;
&lt;br /&gt;
To create a 3x1 column vector you can type v=[1 2 3]&amp;#039;. The prime &amp;#039; denotes a Hermitian transpose. Alternatively you could type&lt;br /&gt;
&lt;br /&gt;
 v=[1&lt;br /&gt;
    2&lt;br /&gt;
    3]&lt;br /&gt;
&lt;br /&gt;
Typing the function eye(n) will create an n x n identity matrix. Typing the function zeros(n) will create an n x n matrix of zeroes. Typing the function zeros(m,n) will create an m x n matrix of zeroes. The function ones(m,n) will create an m x n matrix of ones. If m=1 it is a column vector, if n=1 it is a row vector.&lt;br /&gt;
&lt;br /&gt;
To create a diagonal matrix use the diag function. Typing diag([1 2 3]) will create a 3x3 diagonal matrix with 1, 2 and 3 on the diagonal.&lt;br /&gt;
&lt;br /&gt;
==Matrix Operations==&lt;br /&gt;
&lt;br /&gt;
The inv function inverts matrices. Typing A = inv(B) makes A the inverse of B. In this case A*B and B*A are both the identity matrix.&lt;br /&gt;
&lt;br /&gt;
Say we have entered the matrices v=[1 2 3] and w=[1 2 ; 3 4] and z=[5 6 7]&amp;#039;. We can find the dot product of v and z by typing v*z. We can do matrix-vector multiplication by typing w*[1 1]&amp;#039; or [1 1]*w. These will produce different results.&lt;br /&gt;
&lt;br /&gt;
To find eigenvalues use the eig function. Given a square matrix stored in variable X the command&lt;br /&gt;
 &lt;br /&gt;
 e = eig(x);&lt;br /&gt;
&lt;br /&gt;
will put the eigenvalues of X into the column vector e.  If they are real, they are sorted in ascending order.&lt;br /&gt;
&lt;br /&gt;
To find eigenvectors the format of the output will be changed to&lt;br /&gt;
 &lt;br /&gt;
 [v,e] = eig(X);&lt;br /&gt;
&lt;br /&gt;
This will put the eigenvectors into the columns of v and the eigenvalues into the diagonal of e. In this case e will be a diagonal square matrix with the eigenvalues on the diagonal.&lt;/div&gt;</summary>
		<author><name>Colby.fullerton</name></author>
	</entry>
</feed>