poster
2019-12-10, 20:30
我正在尝试创建一个3 xn的矩阵,每列都相同。实现它的最简单方法是什么?级联?
回答:
后
n=7 x=[1;2;3] 要么
repmat(x,[1 n]) 要么
x(:,ones(1,n))
更多&回答... (https://stackoverflow.com/questions/2423950)
回答:
后
n=7 x=[1;2;3] 要么
repmat(x,[1 n]) 要么
x(:,ones(1,n))
更多&回答... (https://stackoverflow.com/questions/2423950)