www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptcsol/initsol.m

    function cgc = initsol(cgc, solno, N)
%INITSOL Initialise a custom solution
%
%  CGC = INITSOL(CGC, SOLNO, N) where SOLNO is the solution number to
%  initialise to and N is the number of points to initialise with.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


cgc.solutionNo = repmat(solno,N,1);