flatironinstitute / CaImAn-MATLAB

Complete Matlab pipeline for large scale calcium imaging data analysis
GNU General Public License v2.0
252 stars 147 forks source link

error in make_patch_video #26

Closed vd2309 closed 8 years ago

vd2309 commented 8 years ago

Hi!

I get this error when I try to run make_patch_video:

**make_patch_video(A_or,C_or,b2,f2,Yr,Coor,options) Error using reshape Size can only have one unknown dimension.

Error in make_patch_video (line 64) Y = reshape(Y,d1,d2,T);**

I dont know why it is givng me this error, since d1, d2, and T are all known. Please let me know what I should do.

Thank you! Virginia

epnev commented 8 years ago

Again, use debugging to see whether d1, d2 and T are defined inside the function

vd2309 commented 8 years ago

Thanks! the reason was because the original code makes d1 and d2 empty, because options.d1 and options.d2 returns empty for both of the following commands d1 = options.d1; d2 = options.d2; so i just commented these out and set d1=249; and d2=279; which are the correct numbers for our data

Thank you! Your program is really amazing.
Virginia

epnev commented 8 years ago

Glad it's resolved. In general you should pass the dimensions into the options structure since a lot of functions use them.