How to calculate the norm of a multi-dimensional matrix?

15 ビュー (過去 30 日間)
Michael
Michael 2018 年 7 月 12 日
コメント済み: Jan 2022 年 3 月 18 日
Hi
I'm trying to find the norm of a multi-dimensional (4D) matrix. I've tried norm(X) but I get the error
Error using norm
Input must be 2-D.
Anyone know if there's a function for calculating the norm of a multi-dimensional matrix?
  4 件のコメント
jon erickson
jon erickson 2022 年 3 月 18 日
This works great for versions prior to 2022a. It appears N-d arrays are now supported with the norm(X, 'fro') option.
Jan
Jan 2022 年 3 月 18 日
Norms are defined for vectors and matrices. Before you can implement a norm for a 4D array, you have to define mathematically, what you wnt to calculate.

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

回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by