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!