Skip to content

Pb matrix dimension on ms_spectral_clustering #7

@Conchylicultor

Description

@Conchylicultor

When I try to run the generate the laplacien, I obtain a 'Index exceeds matrix dimensions' error on the file ms_spectral_clustering.m at line 10:

function [V, pools] = ms_spectral_clustering(w, wfat, depth, frac, psize)
[...]
    for j=1:depth
        n = floor(frac(j)*size(W{j},1)); % ERROR HERE
[...]

It is logical because of the frac(j):

  • frac is an integer frac = stride / poolsize; defined in build_graph_laplacian_space.m
  • j iterate over depth, which is 2 by default.

So the program try to access the second value of a non-vector.

It works if I simply put depth to one but I would like to understand what does the variable depth correspond to ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions