MATLAB: Not enough input arguments.

voxels

Hi everyone, I'm a beginner of Matlab user. I have a problem for carving a dinosaur demo. This is ">> voxels = makevoxels(85) Error using spacecarving.makevoxels (line 12) Not enough input arguments." Please help me how to resolve this problem. Thanks.

Best Answer

You are not providing all the inputs..you need to call the function like below:
xlim = [0 1] ;
ylim = [0 1] ;
zlim = [0 1] ;
N = 100 ;
voxels = findpeak(xlim,ylim,zlim,N) ;
You need to provide xlim, ylim, zlim which are 1x2 arrays and a number N.