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

8 Ansichten (letzte 30 Tage)
Michael
Michael am 12 Jul. 2018
Kommentiert: Jan am 18 Mär. 2022
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 Kommentare
jon erickson
jon erickson am 18 Mär. 2022
This works great for versions prior to 2022a. It appears N-d arrays are now supported with the norm(X, 'fro') option.
Jan
Jan am 18 Mär. 2022
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by