MATLAB: Matrix manipulation matrix manipulation Have this: fixed = [0 1 1 1 0];w = [120 170 100 85 100]; Trying to get this: fixedw = [170 100 85]; Best Answer fixedw= w(logical(fixed)) Related SolutionsMATLAB: Matrix manipulation A - your matrixout = sum(ismember(A.',[1 1],'rows')) > 1000; MATLAB: Superimposing one matrix on another m2=m;m2(m2==0)=m1 Related QuestionMatrix ManipulationHow to decrease the number of points in a matrixUsing for loop in matlab
Best Answer