Multiplying structure array with a scaler
显示 更早的评论
I have Data.mat file that is a 1x365 structure array and i would like to multiply all the values of the 4th column by 2 and store them in to a variable.
1 个评论
DGM
2021-3-22
This might help:
numericoutputarray=[mystruct.field4]*2;
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!