
suma de variable con parte su nombre en comun
Publicado por joel (4 intervenciones) el 25/10/2017 21:11:18
buen día a todos.
mi consulta es la siguiente, tengo un conjunto de 120 variables con nombres como:
Prueba1__adelante__040x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__adelante__010x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__adelante__060x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__adelante__020x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__030x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__050x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__070x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__080x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__090x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__100x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__110x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__120x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__130x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__140x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__150x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__160x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
la consuta es:
como puedo sumar todas la variables que tengan en comun "Prueba1__adelante" y guardar el resultado en otra variable y así sucesivamente ir sumando las variables que tengan en común "Prueba1__atras", "Prueba1__derecha", "Prueba1__izquierda" e ir guardando cada resultado.
gracias por la ayuda
mi consulta es la siguiente, tengo un conjunto de 120 variables con nombres como:
Prueba1__adelante__040x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__adelante__010x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__adelante__060x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__adelante__020x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__030x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__050x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__070x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__atras__080x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__090x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__100x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__110x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__derecha__120x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__130x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__140x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__150x2Etxt__1=[2 5 6 7 8 34 78 56 2 3]';
Prueba1__izquierda__160x2Etxt__2=[2 5 6 7 8 34 78 56 2 3]';
la consuta es:
como puedo sumar todas la variables que tengan en comun "Prueba1__adelante" y guardar el resultado en otra variable y así sucesivamente ir sumando las variables que tengan en común "Prueba1__atras", "Prueba1__derecha", "Prueba1__izquierda" e ir guardando cada resultado.
gracias por la ayuda
Valora esta pregunta


0