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.
我有一个包含 n 行正负值的列矩阵。我想要第 2 行和第 1 行、第 3 行和第 2 行之间的区别,依此类推。我应该需要单列中的差异
你想如何衡量差异?如果不使用合适的规范,您无法在一列中获得所有这些差异,请尝试“帮助规范”
[n,m]= size(A); d=zeros(1,n) for k= 1:n-1 d(k) = norm(A(k,:))-norm(A(k+1,:)); end
输出存储在列向量 d 中。