Clear Filters
Clear Filters

How to show principal component axis next to the original axis in IRIS data?

1 view (last 30 days)
Hello I want to show principal component axis next to original axis (before rotation) in iris dataset for first 2 dimension but I don't know how. I attached an example photo. also my question is "What determines the magnitude of the principal component axis?"

Accepted Answer

Image Analyst
Image Analyst on 21 Dec 2022
See attached demos
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
  2 Comments
farshad jahangiri
farshad jahangiri on 23 Dec 2022
Hi again.I changed this code to 2 dimensionam Because in the 3D mode, I suspected that the axes of the PCs are not perpendicular to each other, and when I drew in the 2D mode, I observed that they are not perpendicular to each other. As you know, the axes of the PCs must be perpendicular to each other. can you help me ? @Image Analyst

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!