strtrim not working pls help me
Three years late here, but strtrim removes both leading and trailing white spaces. The test here is for the trailing scenario only.
Three and a bit years late too, but there may be a bigger problem with strtrim here, which is that apparently strtrim does not remove "null characters" (whether leading or trailing). This wasn't specifically required by the problem statement, but judging by test 3 it is needed here, and thus it seems that strtrim is especially unsuitable for test 3 (cf. Solution 1393480).
Calculate the Levenshtein distance between two strings
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Find a subset that divides the vector into equal halves
Generate a NaN...on purpose
Try 1.5.4: Celsius to Fahrenheit
Back to basics 15 - classes
Number of toolboxes?
Back to basics 7 - Equal NaNs
Back to basics 15 - Benchmark
Back to basics 23 - Triangular matrix
Find the treasures in MATLAB Central and discover how the community can help you!
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