# Transpose of a matrix of colors

**URL:** <https://discourse.julialang.org/t/transpose-of-a-matrix-of-colors/79809>\
**Category:** New to Julia\
**Tags:** colors, matrices\
**Created:** [April 22, 2022, 3:29am UTC](https://discourse.julialang.org/t/transpose-of-a-matrix-of-colors/79809 "2022-04-22T03:29:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Post date:** [April 22, 2022, 3:29am UTC](https://discourse.julialang.org/t/transpose-of-a-matrix-of-colors/79809/1 "2022-04-22T03:29:25Z")

</div>

I have an array(ColorsArray) that contains vectors with elements that are colors of the type RGB{Float64}. I arranged these vectors into a matrix by doing: reduce(hcat,ColorsArray).  
I wanna take the transpose of this matrix but I got the error:  
MethodError: no method matching transpose(::ColorTypes.RGB{Float64})  
How can I take the transpose of this matrix in julia?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [April 22, 2022, 4:24am UTC](https://discourse.julialang.org/t/transpose-of-a-matrix-of-colors/79809/2 "2022-04-22T04:24:05Z")

</div>

permutedims
