<div style="font:14px/1.5 'Lucida Grande', '微软雅黑';color:#333;"><p style="font:14px/1.5 'Lucida Grande';margin:0;">Hi, all&nbsp;</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">&nbsp; &nbsp; &nbsp; In many ncl functions, the variables can be in any dimension, &nbsp;but how to define a variables of which the dimension can be alterable when I define a personal function ? &nbsp; &nbsp;For example, when I write the following :</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="line-height: 1.5; ">&nbsp;undef("partialcorr")</span></p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px; ">&nbsp; &nbsp; &nbsp; &nbsp; function partialcorr(x[*][*][*],y[*],z[*]) &nbsp;</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">the x input must be 3d, &nbsp;how could the x can be input as a 1d array without writing another function ?</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">Besides, Anyone can show me some tutorial for writing personal function and procedure?</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">Thanks!</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">Lin&nbsp;</p></div>