Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下向量:
a = [1 2]; b = [0.25 0.5];
我想获得一个 2x2 矩阵c:
c
c = [1/0.25+1/0.5 2/0.25+1/0.5 1/0.25+2/0.5 2/0.25+2/0.5];
我的目标是在以后用更多的值扩展这个模型
谢谢
最好的线性代数:
(1./b')*a
repmat(a,size(b,2),1)./repmat(b',1,size(a,2))