Would does it mean to say that two matrices or functions are orthogonal? What does this signify?

I suppose it depends on the inner product. Say if the inner product is the trace of A(^T)B.

Is there a real life application of orthogonal vectors in these sort of vector spaces?