POP_PUSH pops a value off the stack head and pushes it back onto the tail. Description: Function to pop a value off the stack head and pushes it back onto the tail. Syntax: [Stack, Val]=POP_PUSH(Stack); Input Parameters: o Stack: A one-dimensional column vector used to store neuron indices. Output Parameters: o Stack: A one-dimensional column vector used to store neuron indices. Example: >> Stack=[1; 2; 3]; >> Stack=pop(Stack) See also theta_neuron_network
0001 function Stack=pop_push(Stack) 0002 %POP_PUSH pops a value off the stack head and pushes it back onto the tail. 0003 % 0004 %Description: 0005 %Function to pop a value off the stack head and pushes it back onto the 0006 %tail. 0007 % 0008 %Syntax: 0009 %[Stack, Val]=POP_PUSH(Stack); 0010 % 0011 %Input Parameters: 0012 %o Stack: A one-dimensional column vector used to store neuron indices. 0013 % 0014 %Output Parameters: 0015 %o Stack: A one-dimensional column vector used to store neuron indices. 0016 % 0017 %Example: 0018 %>> Stack=[1; 2; 3]; 0019 %>> Stack=pop(Stack) 0020 % 0021 %See also theta_neuron_network 0022 0023 %Copyright (C) 2008 Sam McKennoch <Samuel.McKennoch@loria.fr> 0024 0025 0026 Stack=circshift(Stack,[-1 -1]); 0027