Question: Create a flow chart to do the following, using MATLAB syntax in all blocks : Generate a random integer between 3 and 12 using randi.m
Create a flow chart to do the following, using MATLAB syntax in all blocks:
Generate a random integer between 3 and 12 using randi.m and assign the variable name x to it.
Generate a random number between 0 and 1 using rand.m and assign the variable name y to it.
y=y*10
Round y to the nearest integer
As long as y is not larger than x add one to y
Output x and y.
Transcribed image text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
