I have a function with the following prototype
function [bandwidth,density,X,Y,x,y]=kde2d(data,n,MIN_XY,MAX_XY)
basically the function returns 6 outputs as above, some are in vector form while others are a numerical quantity. How can I elegantly pass the output from the function into a 1 by 6 cell array?
how about
[a{1:6}] = kde2d( data, n, MIN_XY, MAX_XY );
来源:https://stackoverflow.com/questions/15523851/how-to-pass-multiple-output-from-function-into-cell-array