how to multiple this matrix
1 次查看(过去 30 天)
显示 更早的评论
C = [0.20 0.10 0.10 0.20 0.20 0.20];
Pv = [190 72.2 51.6 20.44 15.57 4.956];
P = 50;
K = Pv/P;
% calculate nv
A = C*(K-1);
% I cannot get the value of A .
回答(1 个)
the cyclist
2012-2-19
Use the syntax
A = C.*(K-1);
Notice that I used .* rather than just *. That syntax is for element-by-element multiplication, rather than matrix multiplication.
2 个评论
the cyclist
2012-2-19
You might consider "accepting" this answer, which could help others who are seeking similar solutions.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!