Hi my problem is for graph a component principal with the function contuor map
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Shubham
2023-9-13
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!