Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: how do i append to a variable

  • Subject: Re: how do i append to a variable
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Mon, 18 Jul 2005 04:12:56 +0100
  • Newsgroups: comp.soft-sys.matlab
  • Organization: schestowitz.com / Manchester University
  • References: <ef0e0c1.-1@webx.raydaftYaTP>
  • Reply-to: newsgroups@schestowitz.com
  • User-agent: KNode/0.7.2
aswan wrote:

> hi,
> im a matlab beginner and i want some help on the following:
> 
> suppose i define a variable x = [1 4 8 7]
> and now i want to append another value say 3 to this to make x=[1 4 8
> 7 3]
> 
> can anyone tell me the command for this please?

Try:

new_vector=[x,3]

Hope it helps,

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index