Filter löschen
Filter löschen

matrix limits

1 Ansicht (letzte 30 Tage)
andrew
andrew am 7 Mär. 2012
Hello,
I currently have a set of about 200 2 by 200 matrices. I need to remove some values that are over a maximum value.
I need a way to set a limit for the first column (X co-ord), in order to remove the this value and the corresponding value in the second column (the Y co-ord).
Each matrix can have 1,2 or 3 values over the maximum, therefore I need to set a limit.
I appreciate this is probably a very simple issue for you guys.
Cheers
  1 Kommentar
Jan
Jan am 7 Mär. 2012
How is this set of matrices stored? On the hard disk as text file, in binary format, written on paper, in a [200 x 2 x 200] double array, in a {1 x 200} cell of [2 x 200] double matrices, in different variables, as fields of a [1 x 200] struct vector?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Markus
Markus am 7 Mär. 2012
hei,
this might work:
A(A(:,1)>limit,:) = []
hope this helps

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by