MATLAB ONLY PLEASE
Write a for-loop in MATLAB that creates an array x using the following algorithm: If it is the first iteration run, make the first value of x equal to zero. .It creates a single random number It checks if the random number is bigger or equal than zero and less than 0.5, or if it is bigger than 0.5 and less or equal to 1. If it bigger or equal than zero
OR
OR