I have a cell array of 1000*1 dimension with names on it. I want to shift my elements in such a way that the name starting withN and ending withCA goes to the end. How can I do it?
you could use arrayfun to extract the first and last two letters and then use strfind to locate the index at which the letters that you want and then use this index for the shifting
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.