Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

summation valuse in struct just one dimension

1 visualización (últimos 30 días)
fatema saba
fatema saba el 15 de En. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello
I have a struct(3*3*3 with fields: bit). in each field I have two values. I want to divide vales of each field by product of summation of values of each field in dimension 3)
for example if
struct(1,1,1).bit=2, 3
struct(1,1,2).bit=4, 5
struct(1,1,3).bit=6, 7
my new sruct values must be for example:
newstruct(1,1,1).bit=2/2+4+6 , 3/3+5+7
newstruct(1,1,2).bit=4/2+4+6 , 5/3+5+7
newstruct(1,1,3).bit=6/2+4+6 , 7/3+5+7
thanks in advance

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by