MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Inserting/Pushing a New Value into a Vector 

Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 3 Sep, 2013 14:04:09 Message: 1 of 19 
Hi all, 
Subject: Inserting/Pushing a New Value into a Vector From: Steven_Lord Date: 3 Sep, 2013 14:52:35 Message: 2 of 19 

Subject: Inserting/Pushing a New Value into a Vector From: dpb Date: 3 Sep, 2013 14:53:17 Message: 3 of 19 
On 9/3/2013 9:04 AM, Tiger wrote: 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 3 Sep, 2013 15:29:08 Message: 4 of 19 
Hi dpb, 
Subject: Inserting/Pushing a New Value into a Vector From: dpb Date: 3 Sep, 2013 17:43:26 Message: 5 of 19 
On 9/3/2013 10:29 AM, Tiger wrote: 
Subject: Inserting/Pushing a New Value into a Vector From: james bejon Date: 3 Sep, 2013 21:33:09 Message: 6 of 19 
"Tiger" wrote in message <l04v83$gh3$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: Roger Stafford Date: 3 Sep, 2013 22:57:10 Message: 7 of 19 
"Tiger" wrote in message <l04q8p$ivg$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 6 Sep, 2013 15:13:05 Message: 8 of 19 
"james bejon" wrote in message <l05kil$mn9$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 6 Sep, 2013 17:08:05 Message: 9 of 19 
dpb <none@non.net> wrote in message <l05749$hp4$1@speranza.aioe.org>... 
Subject: Inserting/Pushing a New Value into a Vector From: james bejon Date: 6 Sep, 2013 19:16:06 Message: 10 of 19 
"Tiger" wrote in message <l0cre1$c04$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 7 Sep, 2013 18:54:06 Message: 11 of 19 
"james bejon" wrote in message <l0d9lm$inb$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: james bejon Date: 8 Sep, 2013 11:05:07 Message: 12 of 19 
Hmmm...my method may not be the best for you then as it gets a bit messy, not that it was ever that clean. You could try the following: 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 9 Sep, 2013 06:16:09 Message: 13 of 19 
"james bejon" wrote in message <l0hll3$o0e$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: james bejon Date: 10 Sep, 2013 10:47:04 Message: 14 of 19 
Not sure. Try coercing Low and High into doubles, i.e., double(Low) and double(High) 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 18 Sep, 2013 14:23:07 Message: 15 of 19 
"james bejon" wrote in message <l0mtb8$qg6$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 18 Sep, 2013 14:56:06 Message: 16 of 19 
"Tiger" wrote in message <l1cd0b$f9k$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: james bejon Date: 18 Sep, 2013 21:30:05 Message: 17 of 19 
% Data 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 19 Sep, 2013 10:14:08 Message: 18 of 19 
"james bejon" wrote in message <l1d60t$1sl$1@newscl01ah.mathworks.com>... 
Subject: Inserting/Pushing a New Value into a Vector From: Tiger Date: 19 Sep, 2013 14:54:07 Message: 19 of 19 
"Tiger" wrote in message <l1eipg$n9v$1@newscl01ah.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.