Trying to divide a 3D Scatter plot into grid to count number of colored points in each grid cell
3 次查看(过去 30 天)
显示 更早的评论
Hi all,
I was tasked with recreating a 3D color map of activation time points from an electroanatomic map of the heart (taken from discrete electrode readings in 3 dimensional space), and then dividing the map into a grid to find the area of the heart with the most isochronal crowding (defined as the region where there are the most colors). The data points are exported from the mapping software in a .mat data file as attached. I have managed to recreate an image as shown using an arbitrary color map decided on by myself and my team. It is a scatterplot of values that do not fit any equation, but are rather just time/voltage readings corresponding to 3D points (x,y,z).
I am a bit stuck on how to loop through every grid cell in 3D space; to be more specific, I am not really sure how to divide the scatterplot into a grid. meshgrid does not seem to work, as the z values returned are NaN. Is it possible to create some sort of loop to section the scatterplot 3 dimensionally so that each section can be analyzed separately? I apologize if this question is simplistic, thank you!
1 个评论
Cris LaPierre
2023-3-31
Just adding code to visualize the activation voltage in case others find it helpful
load map6_LV_Sinus.mat
scatter3(data.anatomy.vertices_mm(1,:),data.anatomy.vertices_mm(2,:),data.anatomy.vertices_mm(3,:),...
[],data.maps.activation.bipolar_ms,'.')
回答(1 个)
Nayan
2023-4-5
编辑:Nayan
2023-4-5
Hi,
As, I understand, you are required to find the area of the heart with the most isochronal crowding (defined as the region where there are most colors). I would suggest you to use the discretize(___,'IncludedEdge',side), that allows to segment your data point into cubical bins.
Refer the following link for better understanding and use cases.
Once you have all the datapoint-bin mapping you can easily iterate over each bin IDs to further draw interpretations on the data.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!