Cell Array and Matrix Manipulation Help - Matlab Noob
6 次查看(过去 30 天)
显示 更早的评论
I have several 4x4 matrices stored in a cell array Kd2. I also have several 4x1 vectors stored in U_forcesd. How do I multiply the matrices by the vectors and return the result as I step through from 1 to the number of members I have previously established in my code? (The cell arrays are both member_countx1)
I was thinking something along these lines:
idx5 = 1:member_count
Kd2{idx5,1}*U_forcesd{idx5,1}
Each of these results as idx5 steps through would be a 4x1 vector. How do I store each one of these results? I don't really care if it is returned in one large vector or a matrix with each column being the result.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!