MATLAB: Hi i need writing a code that ceil random number without preset func like ceil,fix,

probably I need to use some loop someone's help?

Best Answer

If you are allowed to use the rem or mod functions, this works:
v = 100*rand(1,10);
Out = v - rem(v,1);
Out = v - mod(v,1);