home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / matlab / 216 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.soft-sys.matlab
  2. Path: sparky!uunet!think.com!sdd.hp.com!spool.mu.edu!news.nd.edu!control!jeff
  3. From: jeff@control.nd.edu (Jeffrey C. Kantor)
  4. Subject: Re: Combining vectors
  5. Message-ID: <1993Jan27.195604.10722@news.nd.edu>
  6. Sender: news@news.nd.edu (USENET News System)
  7. Reply-To: jeff@control.nd.edu
  8. Organization: University of Notre Dame
  9. References: <1k67atINNb9p@nyquist.usc.edu>
  10. Date: Wed, 27 Jan 1993 19:56:04 GMT
  11. Lines: 24
  12.  
  13. In article 1k67atINNb9p@nyquist.usc.edu, wang@nyquist.usc.edu (Weizheng Wang) writes:
  14. >In article <1k5hf2INNlgs@shelley.u.washington.edu> phantom@stein2.u.washington.edu (The Phantom) writes:
  15. >>In article <1993Jan26.182616.11550@vax.oxford.ac.uk> reese@vax.oxford.ac.uk writes:
  16. >>>
  17. >>>
  18. >>>I want to take two vectors and combine them, e.g.
  19. >>>[ a b c d e]  and [ f g h i j ] 
  20. >>>become  [ a f b g c h d i e j ]
  21. >>>
  22. >>
  23.  
  24. Another Solution
  25.  
  26. z = [x;y];
  27. z = z(:)';
  28.  
  29. Jeff
  30.  
  31. Jeffrey C. Kantor                   Email: Jeffrey.Kantor@nd.edu
  32. Dept. of Chemical Engineering       Voice: 219 631 5797
  33. University of Notre Dame              Fax: 219 631 8366
  34. Notre Dame, IN 46556
  35.  
  36.  
  37.