Borrar filtros
Borrar filtros

Matrix manipulation

3 visualizaciones (últimos 30 días)
Will
Will el 24 de Oct. de 2011
Have this:
fixed = [0 1 1 1 0];
w = [120 170 100 85 100];
Trying to get this:
fixedw = [170 100 85];

Respuesta aceptada

Image Analyst
Image Analyst el 24 de Oct. de 2011
fixedw= w(logical(fixed))

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by