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)=[];
316 Solvers
The Hitchhiker's Guide to MATLAB
2888 Solvers
Given a matrix, swap the 2nd & 3rd columns
547 Solvers
Fahrenheit to Celsius converter
372 Solvers
377 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!