フィルターのクリア

element multiplication- question on multiplying row elements

5 ビュー (過去 30 日間)
Mike
Mike 2013 年 11 月 4 日
コメント済み: Mike 2013 年 11 月 4 日
if I have a m*n matrix, it is possible to transform it into a m*n-1 matrix where each m row consists of [n0*n1, n1*n2, n2* n3, ...n-1*n] ?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 4 日
x(:,1:end-1).*x(:,2:end)
  1 件のコメント
Mike
Mike 2013 年 11 月 4 日
Thanks guys- I ended up creating 2 matrices and multiplying the elements together. But this is a lot more efficient. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by