Filter löschen
Filter löschen

How do I check if any elements are not a number in a matrix.

38 Ansichten (letzte 30 Tage)
Giuseppe
Giuseppe am 24 Mär. 2014
Kommentiert: Giuseppe am 24 Mär. 2014
I want to check that the matrix I have contains any non numbers in it. I guess I would use the any() function? I just don't know what code to use.

Akzeptierte Antwort

Friedrich
Friedrich am 24 Mär. 2014
Hi,
I think you are looking for isfinite. (isNaN covers NaN values only but isfinte covers NaN as well as Inf).

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by