suprisingly, this code doesn't work in previous versions of MATLAB. Looks like things under the mask of regexprep changed. Previous policy was [match1][match2]...[matchN][replace1][replace2]...[replaceN] while now it's more like [match1][replace1]...[matchN][replaceN]
This code works in previous versions of MATLAB, but not in current one. See comment 6791.
Volume of this donut
middleAsColumn: Return all but first and last element as a column vector
Vector Linear sum: (p1-m1)V1+(p2-m2)V2+...(pK-mk)Vk
Calculate the Hamming distance between two strings
Find Index of maximum Value and maximum Value of a vector
Size of this cup?
speed vs size
Surface Fit z(x,y)
Given a number N, find the smallest prime P>N
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