Info
此问题已关闭。 请重新打开它进行编辑或回答。
summation valuse in struct just one dimension
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!