MATLAB >> GAUSS code

by Willy Soriano » Tue, 25 Jan 2005 23:43:17 GMT

I will appreciate to whom tell me how to use the GAUSS code language
in the Matlab 6.5. There are some functions for Monte Carlo
application that the matlab do not recognize. Like seqa or seqm.
Thank you for your support

MATLAB >> GAUSS code

by John D'Errico » Wed, 26 Jan 2005 08:48:04 GMT


In article < XXXX@XXXXX.COM >,



I go into the posh French restaurant, and order in fluent
Cantonese. Why don't they ever get my meal right?

In your case, its Gauss, as opposed to Matlab. Why would
code written in one language work in the other?

John


--
The best material model of a cat is another, or
preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945

MATLAB >> GAUSS code

by us » Wed, 26 Jan 2005 08:53:40 GMT

John D'Errico:
<SNIP down to essentials...


but - <john>! do you really need a hint:

all(ismember('french','cantonese'))

:-)
us

MATLAB >> GAUSS code

by hhh » Fri, 28 Jan 2005 11:44:12 GMT

GAUSS.ZIP in the Matlab Central File Exchange
has some of the functions that you need (and u don't have to learn
French)

Similar Threads

1. Can someone explain this Gauss code to me? - MATLAB

2. help to transfer a Gauss code to Matlab

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

3. gauss seidel coding - MATLAB

4. What's the different between "Gauss" and "Gauss Engine" softwares?

Hi all.

just wondering the different between "Gauss" and "Gauss Engine" softwares?

5. rotater function from GAUSS - MATLAB

6. Gauss' regression of a 2D-Dataset looking similar to the Matlab-Symbol

7. Quadgk and Legendre-Gauss - MATLAB

8. can't figure out gauss-seidel problem

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.