On 25 Aug 2017, at 22:46, Francesco Sammartino <[log in to unmask]> wrote:
I see. How can I delete this extra row in your opinion?
Francesco Sammartino MD
On Aug 25, 2017 9:41 AM, "Saad Jbabdi" <[log in to unmask]> wrote:
Hi - My guess is that the extra waypoint has made the matrix too sparse, so when matlab’s kmeans deletes the missing rows you end up with more clusters than data points?
On 19 Aug 2017, at 22:54, Francesco Sammartino <[log in to unmask]> wrote:
HiI used probtrackx2 to perform tractography from the subthalamic nucleus to 6 cortical areas with the omatrix1 option and a waypoint through the thalamus (thalamus as a whole mask - wyapoint 'AND'). Result: I am not able to perform clustering with Kmeans anymore following the instructions reported at https://fsl.fmrib.ox.ac.uk/
I get this error:Warning: Ignoring rows of X with missing data.> In kmeans (line 164)Error using kmeans (line 269)X must have more rows than the number of clusters.
The number of targetmasks is set to 6 so I have 6 clusters for Kmeans. The curious thing is that without waypoint it was working fine...
thanks a lot