Question: The randi() function generates random integers. Using the randi function, accomplish the following tasks: Assign a random integer between 1 and x to the variable
The randi() function generates random integers. Using the randi function, accomplish the following tasks: Assign a random integer between 1 and x to the variable "scalar" (Note: assign a positive integer value to x first!) Create a 2x3 matrix of random integers between -4 and 6 and store it in "mat"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
