vendredi 6 mars 2015

how swapping of two elements in a string can be done in matlab?


Vote count:

0




I have a string of english alphabets and i want to swap first element with second and so on. I am using this code:



for a = 1:25;
b= 1;
k(a)= k(a+b);
end


I don't know whether its a right approach or not. Any help will be appreciated



asked 1 min ago







how swapping of two elements in a string can be done in matlab?

Aucun commentaire:

Enregistrer un commentaire