Matrix manipulation

4 vues (au cours des 30 derniers jours)
Will
Will le 24 Oct 2011
Have this:
fixed = [0 1 1 1 0];
w = [120 170 100 85 100];
Trying to get this:
fixedw = [170 100 85];

Réponse acceptée

Image Analyst
Image Analyst le 24 Oct 2011
fixedw= w(logical(fixed))

Plus de réponses (0)

Catégories

En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by