Matrix manipulation

6 Ansichten (letzte 30 Tage)
Will
Will am 24 Okt. 2011
Have this:
fixed = [0 1 1 1 0];
w = [120 170 100 85 100];
Trying to get this:
fixedw = [170 100 85];

Akzeptierte Antwort

Image Analyst
Image Analyst am 24 Okt. 2011
fixedw= w(logical(fixed))

Weitere Antworten (0)

Kategorien

Mehr zu Geometric Transformation and Image Registration 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