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.
我有一个矩阵 NV,但现在我只想将第二列乘以2 我应该如何去做?这是我当前的代码:
2
NV=zeros(10,10); g1= 1:1:10; n=2; for b=1:n NV(:,b)=10.^(g1/10); end
只需执行以下操作:
NV(:,2)= 2*NV(:,2)