hi i need writing a code that ceil random number without preset func like ceil,fix,
    2 views (last 30 days)
  
       Show older comments
    
    yuval ohayon
 on 27 Jul 2017
  
    
    
    
    
    Answered: Star Strider
      
      
 on 28 Jul 2017
            probably I need to use some loop someone's help?
2 Comments
  James Tursa
      
      
 on 27 Jul 2017
				Why can't you use supplied functions? (You are going to need to use some supplied functions to get this done). Is this homework? What have you done so far?
  Jan
      
      
 on 28 Jul 2017
				@yuval ohayon: The question is not clear. Which functions are not allowed? What exactly are "random numbers"? Please edit the question and add some details.
Accepted Answer
  Star Strider
      
      
 on 28 Jul 2017
        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);
0 Comments
More Answers (0)
See Also
Categories
				Find more on Creating and Concatenating Matrices in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


