Hi Bowen,
The RotationMatrices is a read - only property and cannot be set in the manner you are expecting. I think this answer will make it more clear as to how you may find a workaround: link. Hope this helps!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!