Matrix manipulation

9 次查看(过去 30 天)
Will
Will 2011-10-24
Have this:
fixed = [0 1 1 1 0];
w = [120 170 100 85 100];
Trying to get this:
fixedw = [170 100 85];

采纳的回答

Image Analyst
Image Analyst 2011-10-24
fixedw= w(logical(fixed))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by