MaplePrimes - Questions and Posts tagged with matrices
http://www.mapleprimes.com/tags/matrices
en-us2017 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemWed, 22 Feb 2017 08:21:12 GMTWed, 22 Feb 2017 08:21:12 GMTThe most recent questions and posts on MaplePrimes tagged with matriceshttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Questions and Posts tagged with matrices
http://www.mapleprimes.com/tags/matrices
Matrix equation
http://www.mapleprimes.com/questions/220878-Matrix-Equation-?ref=Feed:MaplePrimes:Tagged With matrices
<p>fn1 and gn1 are the 2x2 matrices. For example<br>
</p>
<pre class="prettyprint">
fn1:=Matrix(2,2,[seq(f[i],i=1..4)])
gn1:=Matrix(2,2,[seq(g[i],i=1..4)])
eq1:=evalm(Matrix(2,2, [1, 1, 0, 3])&*fn1+gn1)=Matrix(2,2,[0]);
eq2:=evalm(fn1+gn1)=Matrix(2,2, [0]);</pre>
<p>how can we find fn1 and gn1 matrices?</p>
<p>fn1 and gn1 are the 2x2 matrices. For example<br />
</p>
<pre class="prettyprint">
fn1:=Matrix(2,2,[seq(f[i],i=1..4)])
gn1:=Matrix(2,2,[seq(g[i],i=1..4)])
eq1:=evalm(Matrix(2,2, [1, 1, 0, 3])&*fn1+gn1)=Matrix(2,2,[0]);
eq2:=evalm(fn1+gn1)=Matrix(2,2, [0]);</pre>
<p>how can we find fn1 and gn1 matrices?</p>
220878Tue, 17 Jan 2017 16:26:35 Zstudent_mdstudent_mdWhy does my matrix look like this?
http://www.mapleprimes.com/questions/220803-Why-Does-My-Matrix-Look-Like-This?ref=Feed:MaplePrimes:Tagged With matrices
<p>For some strange reason my matrices are shown in a very bizarre format (see imgur link). All I want is to simply see the 6x6 matrix with the numerical values - any help would be greatly appreciated. <a href="http://imgur.com/a/qaQmb">http://imgur.com/a/qaQmb</a></p>
<p>For some strange reason my matrices are shown in a very bizarre format (see imgur link). All I want is to simply see the 6x6 matrix with the numerical values - any help would be greatly appreciated. <a href="http://imgur.com/a/qaQmb">http://imgur.com/a/qaQmb</a></p>
220803Tue, 10 Jan 2017 17:21:13 ZMrGrant96MrGrant96Solve matrices symbolically
http://www.mapleprimes.com/questions/215645-Solve-Matrices-Symbolically?ref=Feed:MaplePrimes:Tagged With matrices
<p>Hello </p>
<p>Is there a way to solve matrices symbolically?</p>
<p>an example would be A*X=B</p>
<p>where the answer would be </p>
<p>X=A^-1B</p>
<p> </p>
<p>I have tried to look for a thing in maple that will do this but so far i had no luck. Does anyone know ?</p>
<p>Thanks in advance</p><p>Hello </p>
<p>Is there a way to solve matrices symbolically?</p>
<p>an example would be A*X=B</p>
<p>where the answer would be </p>
<p>X=A^-1B</p>
<p> </p>
<p>I have tried to look for a thing in maple that will do this but so far i had no luck. Does anyone know ?</p>
<p>Thanks in advance</p>215645Sat, 06 Aug 2016 10:00:59 ZEntvexEntvexHow to import/generate a file of numerous matrices?
http://www.mapleprimes.com/questions/214955-How-To-Importgenerate-A-File-Of-Numerous?ref=Feed:MaplePrimes:Tagged With matrices
<p>I want to analyze the runtimes on certain Linear Algebra functions in Maple, so I need a (large) set of matrices to input into these functions.</p>
<p>I have written the below code, which does succesfully generate a file of matrices:</p>
<blockquote></blockquote>
<p>The resulting file looks like:</p>
<blockquote></blockquote>
<p>However, I am unable to read the matrices from this file back into Maple. When using the code below, I get an error.</p>
<blockquote></blockquote>
<p><strong><br></strong>I think the error is that %a in fscanf scans up to the next whitespace, so the spacing in <span>Matrix(3, 3, [[9,1,-4],[-5,6,-10],[-10,-4,-4]]) is throwing fscanf off. Do you guys know of any way I can fix this?</span></p>
<p> </p>
<p>Or, is there a better way for me to generate these matrices so that they can be easily read into Maple? I've considered using ImportMatrix/ExportMatrix, but I believe that they only work for a single matrix, not the numerous ones that I would need. </p><p>I want to analyze the runtimes on certain Linear Algebra functions in Maple, so I need a (large) set of matrices to input into these functions.</p>
<p>I have written the below code, which does succesfully generate a file of matrices:</p>
<blockquote><address><strong>with(LinearAlgebra);</strong></address><address><strong>for i from 0 to 10 do</strong></address><address><strong>resultsFile := "C:\\matrices";</strong></address><address><strong>matrix1 := RandomMatrix(3, 3, generator = -10 .. 10);</strong></address><address><strong>fprintf(resultsFile, "%a\n", matrix1);</strong></address><address><strong>end do</strong></address></blockquote>
<p>The resulting file looks like:</p>
<blockquote><address>Matrix(3, 3, [[9,1,-4],[-5,6,-10],[-10,-4,-4]])</address><address>Matrix(3, 3, [[-2,8,5],[-6,-10,3],[9,8,-6]])</address><address>Matrix(3, 3, [[6,4,-2],[4,-10,7],[-6,-2,10]])</address><address>etc..</address></blockquote>
<p>However, I am unable to read the matrices from this file back into Maple. When using the code below, I get an error.</p>
<blockquote><address><strong>input := "C:\\matrices";</strong></address><address><strong>matrix1 := fscanf(input, "%a");</strong></address><address><strong>Error, (in fscanf) incorrect syntax in parse: `;` unexpected (near 10th character of parsed string)</strong></address></blockquote>
<p><strong><br /></strong>I think the error is that %a in fscanf scans up to the next whitespace, so the spacing in <span>Matrix(3, 3, [[9,1,-4],[-5,6,-10],[-10,-4,-4]]) is throwing fscanf off. Do you guys know of any way I can fix this?</span></p>
<p> </p>
<p>Or, is there a better way for me to generate these matrices so that they can be easily read into Maple? I've considered using ImportMatrix/ExportMatrix, but I believe that they only work for a single matrix, not the numerous ones that I would need. </p>214955Fri, 22 Jul 2016 18:00:13 ZsystemcodesystemcodeSwitching off saving results when saving a worksheet?
http://www.mapleprimes.com/questions/213722-Switching-Off-Saving-Results-When-Saving?ref=Feed:MaplePrimes:Tagged With matrices
<p>I have worksheet that generates very large matrices and it seems to save all results, so it requires large amount of RAM to load and storage to save it. </p>
<p>There used to be a pop-up prompt not to save the results of the worksheet - to save space, but that no longer occurs. Can someone help me to switch on that prompt not to save results or otherwise prevent saving results, when I open the spreadsheet. It maybe that I agreed not to be prompted again, but now I am regretting it!!</p>
<p>MRB </p><p>I have worksheet that generates very large matrices and it seems to save all results, so it requires large amount of RAM to load and storage to save it. </p>
<p>There used to be a pop-up prompt not to save the results of the worksheet - to save space, but that no longer occurs. Can someone help me to switch on that prompt not to save results or otherwise prevent saving results, when I open the spreadsheet. It maybe that I agreed not to be prompted again, but now I am regretting it!!</p>
<p>MRB </p>213722Wed, 22 Jun 2016 13:07:38 ZMelvin BrownMelvin BrownSystem of equations in matrix form
http://www.mapleprimes.com/questions/213349-System-Of-Equations-In-Matrix-Form?ref=Feed:MaplePrimes:Tagged With matrices
<p>I have a system of equations e.g.</p>
<p>A^2+B*A+C=0</p>
<p>where A,B,C are Matrices and I want to solve for A.</p>
<p>Sure I can write every equations in brakets [..=0], but isn'T it possible to just use the matrix notation?</p><p>I have a system of equations e.g.</p>
<p>A^2+B*A+C=0</p>
<p>where A,B,C are Matrices and I want to solve for A.</p>
<p>Sure I can write every equations in brakets [..=0], but isn'T it possible to just use the matrix notation?</p>213349Sun, 12 Jun 2016 12:46:18 Zdigerdigadigerdiga