Matrix manipulation

조회 수: 4 (최근 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