Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

error in dimensions when using values less than 10 for 'density' #1

Open
blunghino opened this issue Jan 7, 2014 · 1 comment
Open

Comments

@blunghino
Copy link

When attempting to run the software with the density in core_calc_psd.m set less than 10 (eg 1, 3, 9) I get an error after the calculations are finished when the program attempts to do the pcolor plot in the GUI.

Error using pcolor (line 57)
Matrix dimensions must agree.

Error in core_calc_psd (line 58)
pcolor(sample(ix).scale,sample(ix).locations,sample(ix).dist')

Error while evaluating uicontrol Callback

Looking at the attributes of sample after a failed run, I see that locations is a 1x1918 matrix, scale is a 1x73 matrix, and dist is a 73x1917 matrix. If I export the data from the run, the csv is blank except for the headers and I get an additional error again resulting from matrix dimensions not agreeing. Runs with the density set at 10 and above (eg 10, 15, 100) do not have this disagreement in dimensions.

@blunghino
Copy link
Author

This problem does not reproduce itself on all images. Also some images tested ran successfully at density=5 but failed at density=9 .

I saw that the dimensions of sample.dist are determined by the dimensions of sample.roi so I changed sample.locations to be set based off the dimensions of sample.roi as well (line 52 of core_calc_psd.m). This seems to have solved my problem for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant