This solution is outdated. To rescore this solution,sign in.
-
1 Comment
Pascal COMBES2013年7月26日
Why the following solution doesn't work? It does on my MATLAB 2011a :
函数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
Suggested Problems
875 Solvers
1087 Solvers
1820 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
6723 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1103 Solvers
More from this Author95
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!