MATLAB: How to round number up to a specific number of decimal places

ceildecimalfix?floorMATLABround

Suppose I have a variable x=0.34; is there a function (or how would one look like) to round this number up to, say 0.4 (next highest number with one decimal place)?
Just like ceil, but with decimals?

Best Answer

ceil(10*x)/10