How do I solve for H in matlab?

  • Thread starter Thread starter Badger33
  • Start date Start date
  • Tags Tags
    Matlab Matrix
Click For Summary
SUMMARY

The discussion focuses on solving for the unknown matrix H in MATLAB, given the relationship Z = HTH, where Z is defined as Z = A + 2*eye(n). The matrix A is known, and it is established that both Z and A must be symmetric and positive definite. The Cholesky decomposition function in MATLAB, specifically chol, is recommended for obtaining the matrix H, which will be lower triangular.

PREREQUISITES
  • Understanding of matrix algebra, specifically properties of symmetric and positive definite matrices.
  • Familiarity with MATLAB programming and syntax.
  • Knowledge of Cholesky decomposition and its applications in solving matrix equations.
  • Basic concepts of eigenvalues and eigenvectors related to matrix properties.
NEXT STEPS
  • Research the implementation of Cholesky decomposition in MATLAB using the chol function.
  • Explore the properties of symmetric and positive definite matrices in linear algebra.
  • Learn about matrix factorization techniques and their applications in numerical methods.
  • Investigate the implications of matrix dimensions and their effects on matrix operations in MATLAB.
USEFUL FOR

This discussion is beneficial for MATLAB users, data scientists, and engineers who are working with matrix equations, particularly those needing to implement matrix decompositions for solving linear systems.

Badger33
Messages
34
Reaction score
0
I need help implementing this bit of code into matlab. I have a known matrix lest call it Z. and I have another unknown matrix called H. The matrices are related by the following relationship.

Z = HTH

How do I solve for H in matlab? If it is relevant Z is a make up of other known matrices and that code in MATLAB is:

Z = A + 2*eye(n)

where A is the initial known matrix and n is just an integer.UPDATE: Yes A and Z will always be positive.
 
Last edited:
Physics news on Phys.org
As an initial observation Z has to be symmetric and positive definite to do this, which puts restrictions on A. Assuming that this is true,

http://www.mathworks.com/help/matlab/ref/chol.html

is what you're looking for. This returns a matrix H that has the property you want and also is lower diagonal
 
reply

see update
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K