Prev: MCR bug?
Next: Combining Multiple Similar GUIs
From: Chris on 24 Jun 2010 19:20 I need help writing a Gauss-Seidel method program using loops and with out functions. I am able to code it with a function, but am slightly confused on how to write it with just loops with out functions. I am a beginner with MATLAB, and still dont know much about it. Any help will be greatly appreciated
From: Ravi on 24 Jun 2010 19:38 Curious as to why u need a code without functions. It is almost impossible to write any non-trivial code without functions. Certainly makes the code unreadable. "Chris " <dodge69daytona(a)hotmail.com> wrote in message <i00p7m$d1k$1(a)fred.mathworks.com>... > I need help writing a Gauss-Seidel method program using loops and with out functions. > I am able to code it with a function, but am slightly confused on how to write it with just loops with out functions. I am a beginner with MATLAB, and still dont know much about it. > Any help will be greatly appreciated
From: Chris on 24 Jun 2010 20:00 Well, not necessarily no functions, i meant with out using a function file. Basically using loops to display the converging answers relative to the number of iterations.
From: BoB on 24 Jun 2010 20:17 basically i got this to read a matrix of the system of linear equations from an Excel sheet including the answer vector, and breaks it down automatically into 2 matrices, the Coeffs @A and the Answer@ C, no i need to put this through a universal Gauss-Seidel method that will display each converging answer, relative to the number of iterations, to the variables based on a user difined guess variable, and write it back on to an excel sheet. This is how far i got, and I dont know how to finish this up. ^^^ M=xlsread('Gauss Seidel.xlsx','Sheet1'); B=M; [Rows Columns]=size(M); M(:,1:Columns-1)=[]; B(:,Columns)= []; N=Rows; A=B; C=M; ^^^
|
Pages: 1 Prev: MCR bug? Next: Combining Multiple Similar GUIs |