Hi my problem is for graph a component principal with the function contuor map
1 view (last 30 days)
Show older comments
I have two serial data, the first data is a serial with size 2D and the second data is a serial data with size 3D (georeferencing latitud y longitud), at the second serie, I must determine the principal component, this no is the problem, the problem is that, when I want correlation (funtion corr) the fisrt serie data with first principal component and graph with countor map, I can´t, because at determine de principal component I lose dimensional space.
So
My question is , How do I return the spatial dimensionality to my principal component?
0 Comments
Answers (1)
Shubham
on 13 Sep 2023
I understand that you want to find correlation between a 2D and a 3D dataset and finally plot a contour map of the same.
To calculate the correlation between a 2D data and 3D data, you can reduce the 3D data into two principal components.
After that you can project the 2D data onto the principal components found after applying PCA on the 3D data.
Now you can calculate the correlation between the projected 2D data and the principal components. You can use the “corr” function to compute the correlation coefficient.
If you want to visualize the correlation, you can create a contour map using the “contourf” function
For more information, please refer to the following documentation:
Hope this helps!!
0 Comments
See Also
Categories
Find more on Directed Graphs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!