Clear Filters
Clear Filters

Is there a basic function that gets one half of a symmetrical matrix?

1 view (last 30 days)
Title speaks for itself. I have done multiple pairwise t-tests and want to get one half of the p-value matrix to check for false discovery rate, and wondered if there was a simple way of getting one half of that symmetrical matrix.
Any help is much appreciated. Thank you!

Accepted Answer

David Haydock
David Haydock on 28 Oct 2022
triu(X)

More Answers (1)

Walter Roberson
Walter Roberson on 28 Oct 2022
squareform()

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!