This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Pascal COMBES
on 26 Jul 2013
Why the following solution doesn't work? It does on my MATLAB 2011a :
function B = column_removal(A,n)
if((n < 1) || (n > size(A, 2)))
B = A;
return;
end
if(n > 1)
l = A(:, 1:(n-1));
else
l = [];
end
if(n < size(A, 2))
r = A(:, (n+1):size(A, 2));
else
r = [];
end
B = [l,r];
end
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!