Rank: 166 based on 1178 downloads (last 30 days) and 10 files submitted
photo

Jordi / Esther Soler / Bonet

E-mail

Personal Profile:

We both are telecommunication students at the politechnical university of Valencia, Spain

Professional Interests:

 

Watch this Author's files

 

Files Posted by Jordi / Esther View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jul 2005 Non-linear shot Solves linear and non-linear boundary problem using shot method (secant or Newton) Author: Jordi / Esther Soler / Bonet shot, differential equation..., boundary, problem 109 0
  • 4.0
4.0 | 1 rating
22 Jul 2005 Gauss-Chevyshev Integrates function using Gauss-Chevyshev method Author: Jordi / Esther Soler / Bonet integral, polynomial, integration, gausschevyshev integr..., function, evaluates 87 0
19 Jul 2005 Gauss-Hermite Integrates a function using gauss-hermite method Author: Jordi / Esther Soler / Bonet cuadrature, integration, method, gausshermite 107 3
  • 2.0
2.0 | 1 rating
19 Jul 2005 Gauss-Laguerre Integrates a functio using Gauss-Laguerre cuadrature method Author: Jordi / Esther Soler / Bonet gausslaguerre, integration, method, mathematics 110 7
  • 2.8
2.8 | 6 ratings
19 Jul 2005 Montecarlo Integrates funcion using Monte-Carlo method Author: Jordi / Esther Soler / Bonet monte carlo, integral, integration, monte, mathematics, carlo 155 4
  • 4.4
4.4 | 5 ratings
Comments and Ratings on Jordi / Esther's Files View all
Updated File Comment by Comments Rating
22 May 2009 invjor Calculates the inverse of a matrix using Jordan-Gauss method. Author: Jordi / Esther Soler / Bonet Norambuena, Marco

17 May 2009 Gauss-Laguerre Integrates a functio using Gauss-Laguerre cuadrature method Author: Jordi / Esther Soler / Bonet Ganze, Johannes

Seems that all the Gauss type quadrature methods fail at large n ,for gauss-legendre quadrature the critical point is approximately n=50.

26 Feb 2009 invjor Calculates the inverse of a matrix using Jordan-Gauss method. Author: Jordi / Esther Soler / Bonet D'Errico, John

Poor. Sorry, but you should NOT be using this code to find an inverse. If anybody is doing so, they are mistaken.

The fact is, you should almost never be computing the inverse in the first place. The very few times this would be of any value, why not use inv anyway? That would be FAR faster. More stable will be to use pinv, which will not give you trash for nearly singular matrices. Even for a 50x50 system, pinv is just as fast.

In almost all circumstances, use backslash to solve systems of equations. Thus if you wish to solve the system

  A*x = b

Use

  x = A\b

or

  x = pinv(A)*b

Do NOT use invjor here.

There is not much help in this, nor . There are no indications that singularity has been detected. No errors, no warnings are issued. As an example, try this utterly simple problem to solve:

A = [0 1;1 0]
A =
     0 1
     1 0

[U,I] = invjor(A)
Ecuations swapping needed
Ecuations swapping needed
U =
     0 1
     1 0
I =
   Inf NaN
   NaN Inf

Gosh, I could swear the inverse is incorrect here. In fact, A is perfectly well conditioned, and the inverse of A is itself!

A*A
ans =
     1 0
     0 1
 
The author gets the size of the matrix, then proceeds to try to "invert" even a non-square matrix.

A = rand(2,3)
A =
      0.81472 0.12699 0.63236
      0.90579 0.91338 0.09754
>> [U,I] = invjor(A)
??? Attempted to access d(3); index out of bounds because numel(d)=2.

Error in ==> invjor at 43
   if d(j)==1;

>> A = rand(3,2)
A =
       0.2785 0.96489
      0.54688 0.15761
      0.95751 0.97059
>> [U,I] = invjor(A)
??? Attempted to access U(1,3); index out of bounds because size(U)=[3,2].

Error in ==> invjor at 33
         Z(k,i)=U(k,i)/U(i,i); % Multiplier

Sorry, but this is no more than a homework assignment, and not a terribly well done one either. I'd give it a C minus at very best. On the file exchange, it is just an F.

25 Feb 2009 invjor Calculates the inverse of a matrix using Jordan-Gauss method. Author: Jordi / Esther Soler / Bonet dalgin, Semih

Thnks i tried for 50*50 matrix and gives not very good bad good enough

23 Aug 2008 Gauss-Laguerre Integrates a functio using Gauss-Laguerre cuadrature method Author: Jordi / Esther Soler / Bonet C, K

Geert VD's Code is efficient using the companion matrix.
As a rule of thumb with matlab, you should always avoid using the loops if you can use vectorized methods.

Top Tags Applied by Jordi / Esther
integration, mathematics, integral, boundary, differential equations
Files Tagged by Jordi / Esther View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jul 2005 Non-linear shot Solves linear and non-linear boundary problem using shot method (secant or Newton) Author: Jordi / Esther Soler / Bonet shot, differential equation..., boundary, problem 109 0
  • 4.0
4.0 | 1 rating
22 Jul 2005 Gauss-Chevyshev Integrates function using Gauss-Chevyshev method Author: Jordi / Esther Soler / Bonet integral, polynomial, integration, gausschevyshev integr..., function, evaluates 87 0
19 Jul 2005 Gauss-Hermite Integrates a function using gauss-hermite method Author: Jordi / Esther Soler / Bonet cuadrature, integration, method, gausshermite 107 3
  • 2.0
2.0 | 1 rating
19 Jul 2005 Gauss-Laguerre Integrates a functio using Gauss-Laguerre cuadrature method Author: Jordi / Esther Soler / Bonet gausslaguerre, integration, method, mathematics 110 7
  • 2.8
2.8 | 6 ratings
19 Jul 2005 Montecarlo Integrates funcion using Monte-Carlo method Author: Jordi / Esther Soler / Bonet monte carlo, integral, integration, monte, mathematics, carlo 155 4
  • 4.4
4.4 | 5 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com