comp.soft-sys.matlab - The MathWorks calculation and visualization package.
Hi, I'm trying to transfer a script from the 'Gauss' software to Matlab. The 2 softwares are very similar but the first one is a kind of precursor. My problem is the following: I've used the optimization function called 'optmum' in Gauss but can't find the corresponding one in Matlab. I've found one called 'fminunc' but I don't get the same results. Does anybody know this function and can help me? It would be really helpful. Many Thanks Regards Ron
Hi all. just wondering the different between "Gauss" and "Gauss Engine" softwares?
I'm trying to implement a gauss-seidel solution. But, I can't figure out where my problem is? I've looked at resources all over the web but my bug still exists.. Can someone please help me figure out why this code doesn't work! function [ x ] = GS( a, b ) %TEST Summary of this function goes here % Detailed explanation goes here n = length(b); xs = zeros(n, 1); x = xs; residual = 1; while (residual > 10^-3) x = xs; for ii=1:n sum1 = 0.0; sum2 = 0.0; for jj = 1: ii-1 sum1=sum1+a(ii,jj) * xs(jj); end for jj = ii : n sum2 = sum2 + a(ii,jj) * x(jj); end r(ii) = b(ii) - sum1 -sum2; end for ii=1:n xs(ii) = x(ii) + r(ii)/a(ii, ii); end r = b - a*xs; residual = norm(r); end >> A A = 14 24 3 4 54 6 74 8 9 >> b b = 4 5 6 >> GS(A, b) It never converges. Thanks for any insight. -brad w.