MATLAB: Could anyone help me to overcome the error.

too many output arguments error

code:
C = partitions(3)
home
partdisp(C)
Y = cell2num(partdisp(C))
If i run the code i am getting error stating Error using partdisp
Too many output arguments.
Error in line 17
Y = cell2num(partdisp(C)).
Could anyone help me on this

Best Answer

partdisp is part of a file exchange contribution. It is defined as not returning any variables and as displaying the output to the command window. You can modify the code if that is not what you need.