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 行の正と負の値を持つ 1 つの列行列があります。行 2 と行 1 、行 3 と行 2 などの違いが必要です。単一の列に違いが必要です
違いをどのように測定しますか?適切な基準を使用せずに、これらすべての違いを1つの列で取得することはできません。「ヘルプ基準」を試してください。
[n,m]= size(A); d=zeros(1,n) for k= 1:n-1 d(k) = norm(A(k,:))-norm(A(k+1,:)); end
出力は列ベクトルdに格納されます。