s2='';
s1=[' ',s1];
a=findstr(s1,' ');
a=[a length(s1)];
for i=length(a):-1:2
s2= strcat(s2,s1(a(i-1):a(i)));
end
s2(:,1)=[];
819 Solvers
Switch matrix to a column vector
260 Solvers
480 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
298 Solvers
993 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!