ginput(n)
我正在为从n 为否的点创建多个句柄。要采取的点。n
是来自用户的输入。我想为所有点创建句柄并使用数组将它们传递给另一个函数。SO 代码如下所示:
n=input('Enter no. of points ');
[t]=ginput(n);
//I want to create handles for all points in t.
function DrawBezier(//pass handles to this function )
我认为一个想法是创建一个数组并将句柄放入其中。现在传递该数组。