Writing math formula into the matlab
1 次查看(过去 30 天)
显示 更早的评论
I try to write the below formula:
h=sum(H1(l*m)^r);
Is that true in your opinion?
Thanks for the help.
采纳的回答
Thorsten
2016-7-19
It depends on the context, but your code is probably wrong. You have some variable H that seems to vary according to i, l and j. If you have set up your H such that l varies along a column, you can write
h = sum(H)
where j and l could are varying along the 2nd and 3rd dimension.
2 个评论
Thorsten
2016-7-19
Yes. sum sums over the first dimension, which is l in your case. And that's what the formula says.
BTW:
S = sum(X,DIM) sums along the dimension DIM.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!