subject

2) Write a for loop over the index i. This for loop will execute a piece of code for 20 times, each time producing an array of 100 random numbers and storing it in a new variable called ‘variable_i’. As a result, when the for loop is finished running, there should be 20 variables stored in your workspace named variable_1 to variable_20 each containing 100 random numbers. (Take a screenshot of your code and a screenshot of your workspace showing the 20 variables in your workspace.). Now Create a matrix of size 100x20 and call it ‘A’. Fill the columns of ‘A’ with the 20 variables (variable_1, …, variable_20). Hint: use variable_{loop index}

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, deathfire5866
Determine whether the following careers would require training or college.
Answers: 1
image
Computers and Technology, 24.06.2019 02:00, ishmael9332
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
image
Computers and Technology, 24.06.2019 07:30, LuckyCharms988
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
You know the right answer?
2) Write a for loop over the index i. This for loop will execute a piece of code for 20 times, each...

Questions in other subjects:

Konu
Mathematics, 01.01.2020 23:31