PUSH adds values to the tail of the stack Description: Function to adds values to the tail of the stack. Syntax: Stack=PUSH(Stack,Vals); Input Parameters: o Stack: A one-dimensional column vector used to store neuron indices. o Vals: A one-dimensional column vector (may be scalar) of neuron indices to be added to the Stack. Output Parameters: o Stack: A one-dimensional array used to store neuron indices. Example: >> Stack=[]; >> Stack=push(Stack,[1; 4.5]) See also theta_neuron_network
0001 function Stack=push(Stack,Vals) 0002 %PUSH adds values to the tail of the stack 0003 % 0004 %Description: 0005 %Function to adds values to the tail of the stack. 0006 % 0007 %Syntax: 0008 %Stack=PUSH(Stack,Vals); 0009 % 0010 %Input Parameters: 0011 %o Stack: A one-dimensional column vector used to store neuron indices. 0012 %o Vals: A one-dimensional column vector (may be scalar) of neuron indices 0013 % to be added to the Stack. 0014 % 0015 %Output Parameters: 0016 %o Stack: A one-dimensional array used to store neuron indices. 0017 % 0018 %Example: 0019 %>> Stack=[]; 0020 %>> Stack=push(Stack,[1; 4.5]) 0021 % 0022 %See also theta_neuron_network 0023 0024 %Copyright (C) 2008 Sam McKennoch <Samuel.McKennoch@loria.fr> 0025 0026 0027 Stack=[Stack; Vals];