home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 9.ddi / IDENT.DI$ / STRUC.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  655 b   |  27 lines

  1. function NN=struc(NA,NB,NK)
  2. %STRUC     generates typical structure matrices for ARXSTRUC and IVSTRUC
  3. %
  4. %    NN = struc(NA,NB,NK)
  5. %
  6. %    NA, NB and NK are vectors containing the orders na, nb and delays nk
  7. %    to be tested. See HELP ARX for an explanation of na, nb and nk.
  8. %    NN is returned as a matrix containing all combinations of these
  9. %    orders and delays. The function is intended for single input systems
  10. %    only.
  11. %
  12. %    See ARXSTRUC, IVSTRUC and SELSTRUC for further information
  13.  
  14. %    L. Ljung 7-8-87
  15. %    Copyright (c) The MathWorks, Inc.
  16. %    All Rights Reserved    
  17.  
  18. r=1;
  19. for ka=NA
  20.     for kb=NB
  21.     for kk=NK
  22.     NN(r,:)=[ka,kb,kk];
  23.     r=r+1;
  24.     end
  25.     end
  26. end
  27.