Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So I have this project, and there's this code which I'm still trying to understand how this code working, in manual equation.

if rand <0.25, then
DO ...

I hope someone can help me cause I'm still new to learn about Matlab. Thank you for the help

What I have tried:

Trying to read a matlab book and searching on the internet, still want to make sure how it works in manual equation
Posted
Updated 24-Oct-17 6:22am

1 solution

It means:
If the next random number (rand)
is less than (<)
0.25
Then execute the following block (DO).


I suggest you buy a book on programming. Posting basic questions like this is not a good way to learn.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900