MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodayView profile information

Company/University

Schrneider Electric/MINES Paristech

Personal Profile

Professional Interests: control, signal processing

Professional Interests

control, signal processing

9788Rank

2Badges

70Score

Pascal COMBES submitted Solution 290596 to Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]

on 26 Jul 2013

Pascal COMBES submitted a Comment to Solution 290589

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

on 26 Jul 2013

1 – 8 of 8 previous next