<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matrix Programs | Student Projects</title>
	<atom:link href="https://studentprojects.in/category/software-development/c-tutorials/c/matrix/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Tue, 28 Apr 2009 12:19:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Program to find the transpose of a Matrix</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/matrix/program-to-find-the-transpose-of-a-matrix/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/matrix/program-to-find-the-transpose-of-a-matrix/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:56:03 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=373</guid>

					<description><![CDATA[<p>Here is the program to transpose the entered matrix. The program asks for the order (M, N) of the matrix Soon after entering the order, the cursor takes to the proper position in the screen to input the matrix. User need to hit &#8216;Enter&#8217; button after each entry. Logic :  A simple logic lies here.</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/program-to-find-the-transpose-of-a-matrix/">Program to find the transpose of a Matrix</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to transpose the entered matrix. The program asks for the order (M, N) of the matrix Soon after entering the order, the cursor takes to the proper position in the screen to input the matrix. User need to hit &#8216;Enter&#8217; button after each entry.</p>
<p>Logic :  A simple logic lies here. We declare another matrix B with order (N, M). The first matrix is traced through the first entry, till the end. The member is copied to another matrix with interchanging the column and rows count. Finally, the matrix B will be the transpose of the entered matrix A.</p>
<p>Please find the<br />
other matrix  related programs from the index.</p>
<p>#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
int A[5][5], B[5][5], i, j, m, n;<br />
clrscr();<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE MATRIX M,N&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;,&amp;m,&amp;n);<br />
printf(&#8220;\n\n\t ENTER THE ELEMENTS OF THE MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(20+j*4,12+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;A[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
for(i=1;i&lt;=m;i++)<br />
for(j=1;j&lt;=n;j++)<br />
B[j][i] = A[i][j];<br />
printf(&#8220;\n\t THE TRANSPOSE OF A MATRIX IS&#8230;:\n\n\t\t &#8220;);<br />
for(i=1;i&lt;=n;i++)<br />
{<br />
for(j=1;j&lt;=m;j++)<br />
printf(&#8221; %d&#8221;,B[i][j]);<br />
printf(&#8220;\n\n\t\t &#8220;);<br />
}<br />
getch();<br />
}<br />
<a href="https://studentprojects.in/wp-content/uploads/2008/12/mat_trns.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/program-to-find-the-transpose-of-a-matrix/">Program to find the transpose of a Matrix</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/matrix/program-to-find-the-transpose-of-a-matrix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>To find the sum of secondary diagonal of a Matrix</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-secondary-diagonal-of-a-matrix/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-secondary-diagonal-of-a-matrix/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:53:00 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=370</guid>

					<description><![CDATA[<p>Here is the program to find the sum of the secondary diagonal elements (From right top to  left bottom ) of the entered integer square matrix. The program asks for the order (M, N)  [where M should equal N] of the matrix. Soon after entering the order, the cursor takes to the proper position in</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-secondary-diagonal-of-a-matrix/">To find the sum of secondary diagonal of a Matrix</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to find the sum of the secondary diagonal elements (From right top to  left bottom ) of the entered integer square matrix. The program asks for the order (M, N)  [where M should equal N] of the matrix. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry. Matrix is stored as A.</p>
<p>Logic :  The secondary diagonal elements will have a constant relation in their row and column column count. As the row count increases, the column count decreases, to maintain the sum of the two to ( M+1) where M is the order. By keeping this in mind, we can trace the matrix till the end using the help of a for loop.  The flag &#8216;sum&#8217; is updated in each of the iterations.<br />
Finally, we&#8217;ll get the sum of the diagonal elements after the end of the while loop.</p>
<p>You are always welcome with your suggestion and doubts into our discussion forum.</p>
<p>#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
int A[5][5],i,j,m,n,sum = 0;<br />
clrscr();<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE MATRIX M,N&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;,&amp;m,&amp;n);<br />
printf(&#8220;\n\n\t ENTER THE ELEMENTS OF THE MATRIX..:\n\n&#8221;);<br />
if(m == n)<br />
{<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(20+j*4,12+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;A[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
for(i=1;i&lt;=m;i++)<br />
sum = sum + A[i][n+1-i];<br />
printf(&#8220;\n\t THE SUM OF SECONDARY DIAGONAL OF A MATRIX IS&#8230;: %d&#8221;, sum);<br />
}<br />
else<br />
{<br />
printf(&#8220;\n\t THE ORDER OF THE MATRIX IS NOT CORRECT&#8221;);<br />
printf(&#8220;\n\n\t HELP : &#8216;M&#8217; SHOULD BE EQUAL TO &#8216;N'&#8221;);<br />
}<br />
getch();<br />
}<br />
<a href="https://studentprojects.in/wp-content/uploads/2008/12/mat_spri2.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-secondary-diagonal-of-a-matrix/">To find the sum of secondary diagonal of a Matrix</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-secondary-diagonal-of-a-matrix/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>To find the sum of primary diagonal of a Matrix</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-primary-diagonal-of-a-matrix/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-primary-diagonal-of-a-matrix/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:49:50 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=367</guid>

					<description><![CDATA[<p>Here is the program to find the sum of the primary diagonal elements (From left top to right bottom) of the entered integer matrix. The program asks for the order (M, N)  [where M should equal N] of the matrix. Soon after entering the order, the cursor takes to the proper position in the screen</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-primary-diagonal-of-a-matrix/">To find the sum of primary diagonal of a Matrix</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to find the sum of the primary diagonal elements (From left top to right bottom) of the entered integer matrix. The program asks for the order (M, N)  [where M should equal N] of the matrix. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry. Matrix is stored as A.</p>
<p>Logic :  The diagonal elements, are the elements having equal column and row value throughout. By keeping this in mind, we can trace the matrix till the end using the help of a for loop.  The flag &#8216;sum&#8217; is updated in each of the iterations.<br />
Finally, we&#8217;ll get the sum of the diagonal elements after the end of the while loop.</p>
<p>You are always welcome with your suggestion and doubts into our discussion forum.</p>
<p>#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
int A[5][5],i,j,m,n,sum = 0;<br />
clrscr();<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE MATRIX M,N&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;,&amp;m,&amp;n);<br />
printf(&#8220;\n\n\t ENTER THE ELEMENTS OF THE MATRIX..:\n\n&#8221;);<br />
if(m == n)<br />
{<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(20+j*4,12+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;A[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
for(i=1;i&lt;=m;i++)<br />
sum = sum + A[i][i];<br />
printf(&#8220;\n\t THE SUM OF PRIMARY DIAGONAL OF A MATRIX IS&#8230;: %d&#8221;, sum);<br />
}<br />
else<br />
{<br />
printf(&#8220;\n\t THE ORDER OF THE MATRIX IS NOT CORRECT&#8221;);<br />
printf(&#8220;\n\n\t HELP : &#8216;M&#8217; SHOULD BE EQUAL TO &#8216;N'&#8221;);<br />
}<br />
getch();<br />
}<br />
<a href="https://studentprojects.in/wp-content/uploads/2008/12/mat_spri.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-primary-diagonal-of-a-matrix/">To find the sum of primary diagonal of a Matrix</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-primary-diagonal-of-a-matrix/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>To multiply two Matrices</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-multiply-two-matrices/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-multiply-two-matrices/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:46:42 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=364</guid>

					<description><![CDATA[<p>Here is the program to find the product of the two integer matrices. The program asks for the order A (M, N) of the first matrix, and that B (P, Q) of the second matrix.  Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-multiply-two-matrices/">To multiply two Matrices</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to find the product of the two integer matrices. The program asks for the order A (M, N) of the first matrix, and that B (P, Q) of the second matrix.  Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry.</p>
<p>Logic : To multiply two matrices, the condition should be satisfy that the column count of the  first matrix A should equal the column count of the second matrix B. (The program will check for the validity of this condition i.e. if, N = P. If fails, outputs an error message.) The first row of A is multiplied with with the first column of B. i.e. the first member of the first row of A is multiplied with the first member of first column of B, stored in a variable sum, second with the second and the product is added up, similarly, the procedure grows till the end, and sum is updated in each multiply, and the sum will be the first member of the product matrix C. The procedure grows till the end. Finally we will get the product matrix C of order (M, Q).</p>
<p>The procedure can be modified slightly with the same algorithm, to add,  subtract,  transpose or others like, to trace the diagonals etc.</p>
<p>#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
int A[5][5],B[5][5],C[5][5],i,j,m,n,p,q,k;<br />
clrscr();<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE FIRST MATRIX M,N&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;,&amp;m,&amp;n);<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE SECOND MATRIX P,Q&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;,&amp;p,&amp;q);<br />
if(n == p)<br />
{<br />
printf(&#8220;\n\n\t ENTER THE ELEMENTS OF THE FIRST MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(25+j*4,14+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;A[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
printf(&#8220;\n\t ENTER THE ELEMENTS OF THE SECOND MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=p;i++)<br />
{<br />
for(j=1;j&lt;=q;j++)<br />
{<br />
gotoxy(25+j*4,20+m+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;B[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
for(i=1;i&lt;=m;i++)<br />
for(j=1;j&lt;=q;j++)<br />
{<br />
C[i][j] = 0;<br />
for(k=1;k&lt;=n;k++)<br />
C[i][j] = C[i][j] + (A[i][k] * B[k][j]);<br />
}<br />
printf(&#8220;\n\t THE PRODUCT OF TWO MATRICES IS&#8230;:\n\n\t\t\t &#8220;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=q;j++)<br />
printf(&#8221; %d&#8221;,C[i][j]);<br />
printf(&#8220;\n\n\t\t\t &#8220;);<br />
}<br />
}<br />
else<br />
{<br />
printf(&#8220;\n\t THE ORDERS OF TWO MATRICES ARE NOT CORRECT&#8221;);<br />
printf(&#8220;\n\n\t HELP : &#8216;N&#8217; SHOULD BE EQUAL TO &#8216;P'&#8221;);<br />
}<br />
getch();<br />
}<br />
<a href="https://studentprojects.in/wp-content/uploads/2008/12/mat_mul.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-multiply-two-matrices/">To multiply two Matrices</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-multiply-two-matrices/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>To find the difference of two Matrices</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-difference-of-two-matrices/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-difference-of-two-matrices/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:43:56 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=361</guid>

					<description><![CDATA[<p>Here is the program to find the difference between the two integer matrices. The program asks for the order (M, N) of the matrices. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry. Logic : The</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-difference-of-two-matrices/">To find the difference of two Matrices</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to find the difference between the two integer matrices. The program asks for the order (M, N) of the matrices. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry.</p>
<p>Logic : The logic applied here is very simple, that what we do in the paper. The first entry of the first matrix  ( A[1,1] ) is subtracted by the first entry of the second Matrix  (B[1,1]) and stored as the first member of the resultant matrix (C[1,1]). The procedure is continued till the last number of the matrix.</p>
<p>The procedure can be modified slightly with the same algorithm, to add, multiply, or transpose etc.</p>
<p>#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
int A[5][5], B[5][5], C[5][5], i, j, m, n;<br />
clrscr();<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE MATRICES M,N&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;, &amp;m, &amp;n);<br />
printf(&#8220;\n\n\t ENTER THE ELEMENTS OF THE FIRST MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(25+j*4,12+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;A[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
printf(&#8220;\n\t ENTER THE ELEMENTS OF THE SECOND MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(25+j*4,18+m+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;B[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
for(i=1;i&lt;=m;i++)<br />
for(j=1;j&lt;=n;j++)<br />
C[i][j] = A[i][j] &#8211; B[i][j];<br />
printf(&#8220;\n\t THE DIFFERENCE OF TWO MATRICES IS&#8230;:\n\n\t\t\t &#8220;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
printf(&#8221; %d&#8221;,C[i][j]);<br />
printf(&#8220;\n\n\t\t\t &#8220;);<br />
}<br />
getch();<br />
}<br />
<a href="https://studentprojects.in/wp-content/uploads/2008/12/mat_dif.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-difference-of-two-matrices/">To find the difference of two Matrices</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-difference-of-two-matrices/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>To find the sum of two Matrices</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-two-matrices/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-two-matrices/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:10:43 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[C/C++]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=357</guid>

					<description><![CDATA[<p>Here is the program to find the sum of the two integer matrices. The program asks for the order (M, N) of the matrices. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry. Logic :  The</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-two-matrices/">To find the sum of two Matrices</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to find the sum of the two integer matrices. The program asks for the order (M, N) of the matrices. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit &#8216;Enter&#8217; button after each entry.</p>
<p>Logic :  The logic applied here is very simple, that what we do in the paper. The first entry of the first matrix  ( A[1,1] ) is added up with the first entry of the second Matrix  (B[1,1]) and stored as the first member of the resultant matrix (C[1,1]). The procedure is continued till the last number of the matrices.</p>
<p>The procedure can be modified slightly with the same algorithm, to subtract, multiply, or transpose etc.</p>
<p>#include&lt;stdio.h&gt;<br />
void main()<br />
{<br />
int A[5][5], B[5][5], C[5][5], i, j, m, n;<br />
clrscr();<br />
printf(&#8220;\n\n\t ENTER A ORDER OF THE MATRICES M,N&#8230;: &#8220;);<br />
scanf(&#8220;%d,%d&#8221;, &amp;m, &amp;n);<br />
printf(&#8220;\n\n\t ENTER THE ELEMENTS OF THE FIRST MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(25+j*4,12+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;A[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
printf(&#8220;\n\t ENTER THE ELEMENTS OF THE SECOND MATRIX..:\n\n&#8221;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
{<br />
gotoxy(25+j*4,18+m+i*2);<br />
scanf(&#8220;%d&#8221;,&amp;B[i][j]);<br />
}<br />
printf(&#8220;\n&#8221;);<br />
}<br />
for(i=1;i&lt;=m;i++)<br />
for(j=1;j&lt;=n;j++)<br />
C[i][j] = A[i][j] + B[i][j];<br />
printf(&#8220;\n\t THE SUM OF TWO MATRICES IS&#8230;:\n\n\t\t\t &#8220;);<br />
for(i=1;i&lt;=m;i++)<br />
{<br />
for(j=1;j&lt;=n;j++)<br />
printf(&#8221; %d&#8221;,C[i][j]);<br />
printf(&#8220;\n\n\t\t\t &#8220;);<br />
}<br />
getch();<br />
}<br />
<a href="https://studentprojects.in/wp-content/uploads/2008/12/mat_sum.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-two-matrices/">To find the sum of two Matrices</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/matrix/to-find-the-sum-of-two-matrices/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Intelligent Train Engines</title>
		<link>https://studentprojects.in/electronics/microcontrollers/intelligent-train-engines/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/intelligent-train-engines/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 20 Nov 2008 03:00:51 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[8951 based IR receiver]]></category>
		<category><![CDATA[IR Receivers]]></category>
		<category><![CDATA[IR transmitter]]></category>
		<category><![CDATA[Train indicator circuits]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=187</guid>

					<description><![CDATA[<p>The idea is whenever any engine observes a red signal on its track it will start decreasing its speed gradually and stops automatically at some distance from the signal pole. After then when it gets green signal the driver can manually start the train and go on.</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/intelligent-train-engines/">Intelligent Train Engines</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>We know that the railway network of India is the biggest in south Asia and perhaps the most complicated in all over the world. There are so many different types of trains local, fast, super fast, passenger, goods&#8230;. etc. and their so many multiple routs. Although the time table is perfect it is not at all possible to maintain it. And that’s why the train accidents are becoming more and more usual. So why not we add a kind of intelligence to the train engines itself so that it tries to avoid accidents.</p>
<p>The idea is whenever any engine observes a red signal on its track it will start decreasing its speed gradually and stops automatically at some distance from the signal pole. After then when it gets green signal the driver can manually start the train and go on. In the mean time when train has not stopped yet and a red signal becomes green then it crosses the signal pole with low speed and then driver can slowly increase the speed.</p>
<p>So now before the driver observes the red signal the engine itself observes it and automatically starts decreasing speed and then stops. The driver can feel relax in driving because he doesn’t have to take care about red signal. Even if he forgets to take any action on red signal then also we can avoid accidents by the implementation of this idea.</p>
<p><strong>General description:</strong></p>
<p>What we have to do is we have to attach a transmitter with signal pole which will start transmitting signals only when the red light is on. If there is green light no transmission. The engine has a receiver which catches these transmitted signals and takes desire actions.</p>
<p>Both the transmitter and receiver are of RF type with minimum range of 2 Km. so that train can get enough time to decrease its speed and stop before the signal pole with minimum swapping distance of 100-200 mt.</p>
<p>Here in our project we have used IR transmitter and receiver instead of RF for demo purpose. But same idea can be easily implemented with RF also with a little more cost.</p>
<p>Lets first discuss the demonstration model.</p>
<p><strong>Demonstration Model:</strong></p>
<p>The train engine runs on 24V DC motor so that we can easily vary its speed by varying applied voltage. The switching voltage is applied in step of 18 V, 15 V, 12 V and 9 V (min speed). The 230 VAC is step-down to 24 VAC by 12-0-12, 2 Ampere step down transformer. As shown in figure this 24 VAC line runs parallel with track at the top of the train. Movable tapping are taken from this line and fed to the internal circuit of engine. These tapping slides as the train runs on the track and give continuous supply to circuit. The IR sensor is placed at the top of the engine, senses the signals transmitted by IR transmitter attached to signal pole. Train track is straight and 20 ft long. Signal pole is placed at the end of track and train starts from farther end.</p>
<figure id="attachment_188" aria-describedby="caption-attachment-188" style="width: 499px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-188" title="Model of Intelligent Train Engines" src="https://studentprojects.in/wp-content/uploads/2008/11/block6.gif" alt="Model of Intelligent Train Engines" width="499" height="226" /><figcaption id="caption-attachment-188" class="wp-caption-text">Model of Intelligent Train Engines</figcaption></figure><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/intelligent-train-engines/">Intelligent Train Engines</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/intelligent-train-engines/feed/</wfw:commentRss>
			<slash:comments>321</slash:comments>
		
		
			</item>
		<item>
		<title>Robotic car using 8951 Microcontroller</title>
		<link>https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Wed, 19 Nov 2008 11:29:22 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[8951 Microcontroller]]></category>
		<category><![CDATA[Robotic car]]></category>
		<category><![CDATA[Intefacing Keyboard]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=177</guid>

					<description><![CDATA[<p>Robotic Car is a miniature prototype car powered by batteries whose various movements can be control either manually or automatically, or the combination of both.</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/">Robotic car using 8951 Microcontroller</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Robotic Car is a miniature prototype car powered by batteries whose various movements can be control either manually or automatically, or the combination of both.  Here the command is given through keyboard; it would have been better if we used IR remote control or something of that kind rather than using keyboard for commanding. However, by realizing the complexities we have made simple using keyboard.</p>
<figure id="attachment_178" aria-describedby="caption-attachment-178" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-178" title="Block diagram of the project" src="https://studentprojects.in/wp-content/uploads/2008/11/block5.gif" alt="Block diagram of the project:" width="500" height="319" /><figcaption id="caption-attachment-178" class="wp-caption-text">Block diagram of the project:</figcaption></figure>
<p><strong>Some photographs of this model:</strong></p>
<figure id="attachment_179" aria-describedby="caption-attachment-179" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-179" title="Robotic car model" src="https://studentprojects.in/wp-content/uploads/2008/11/photo_1.gif" alt="Robotic car model" width="500" height="337" /><figcaption id="caption-attachment-179" class="wp-caption-text">Robotic car model</figcaption></figure>
<figure id="attachment_180" aria-describedby="caption-attachment-180" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-180" title="Robotic car model" src="https://studentprojects.in/wp-content/uploads/2008/11/photo_2.gif" alt="Robotic car model" width="500" height="337" /><figcaption id="caption-attachment-180" class="wp-caption-text">Robotic car model</figcaption></figure>
<p><strong>Project Description:</strong></p>
<p><strong>Keyboard section:</strong></p>
<p>There are six switches in this section. They are</p>
<ol>
<li>Turn left.</li>
<li>Turn right.</li>
<li>Stop.</li>
<li>About turn.</li>
<li>Park left.</li>
<li>Park right.</li>
</ol>
<p>Circuit diagram of keyboard is shown bellow.</p>
<figure id="attachment_181" aria-describedby="caption-attachment-181" style="width: 258px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-181" title="Keyboard circuit of the Robotic car" src="https://studentprojects.in/wp-content/uploads/2008/11/keyboard2.jpg" alt="Keyboard circuit of the Robotic car" width="258" height="262" /><figcaption id="caption-attachment-181" class="wp-caption-text">Keyboard circuit of the Robotic car</figcaption></figure>
<p><strong>Car section:</strong></p>
<p>There are many sub sections in this section. They are</p>
<p><strong> Motor:</strong></p>
<p>We are using a 5V dc motor to drive the vehicle. The speed of the vehicle and its strength is controlled by the proper use of pulley. The rear wheel of the vehicle is connected to this motor through a pulley. This motor is meant for moving the vehicle both in forward and backward direction. Microcontroller (8051) controls the forward and backward movement of the vehicle in the following manner:</p>
<figure id="attachment_182" aria-describedby="caption-attachment-182" style="width: 311px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-182" title="Circuit diagram of Motor connection" src="https://studentprojects.in/wp-content/uploads/2008/11/circuit2.gif" alt="Circuit diagram of Motor connection" width="311" height="317" /><figcaption id="caption-attachment-182" class="wp-caption-text">Circuit diagram of Motor connection</figcaption></figure>
<p>Here in the above circuit, T1, T2, T3, T4 are the NPN power transistor (2N3055). A0, A1, A2, A3 are the signals coming from the micro controller. With the specific combination of A0, A1, A2, A3 we can change the direction of rotation of motor as follows:</p>
<p><strong> Case I:</strong> When   A0=high; A3=high; &amp; A1=low; A2=low<br />
The motor rotates in clockwise direction<br />
<strong><br />
Case II:</strong> When   A0=low; A3=low; &amp; A1=high; A2=high<br />
The motor rotates in anti-clockwise direction<br />
<strong><br />
Case III:</strong> When   A0=low; A3=low; A1=low; A2=low<br />
The motor stops the rotation.<br />
<strong> </strong></p><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/">Robotic car using 8951 Microcontroller</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/feed/</wfw:commentRss>
			<slash:comments>498</slash:comments>
		
		
			</item>
	</channel>
</rss>
