Info

This question is closed. Reopen it to edit or answer.

summation valuse in struct just one dimension

1 view (last 30 days)
fatema saba
fatema saba on 15 Jan 2015
Closed: MATLAB Answer Bot on 20 Aug 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

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!