Convert the input to a cell array, but only if necessary.
If the input is a numeric array, return a 1-by-1 cell array containing the input. If the input is a cell array of numeric arrays, return the input unaltered.
Swap the first and last columns
Distance walked 1D
Make one big string out of two smaller strings
Create matrix of replicated elements
Convert ColorSpec string to RGB triplet
Find the nearest prime number
Assign matrix elements to separate variables
Find last zero for each column
Calculate a modified Levenshtein distance between two strings
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office