![subject](/tpl/images/cats/User.png)
Engineering, 02.11.2019 04:31 kekebaby156
Create a function called randmatrix that takes input from the script and returns a mxn matrix v of random numbers (use rand). m and n must be chosen by the user on the script and passed to the function. display this matrix on the script.
use for loops to move through the v matrix, element by element, and change any value that is less than 0.5
to 0 and any value that is greater than (or equal to) 0.5 to 1.
display this matrix.
sample output:
enter number of rows: 3
enter number of columns: 5
original matrix v:
0.7275 0.7490 0.2483 0.9199 0.9567
0.5003 0.7374 0.3838 0.9002 0.6681
0.5233 0.8743 0.7914 0.7079 0.4669
new matrix v:
1 1 0 1 1
1 1 0 1 1
1 1 1 1 0
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Engineering
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
You know the right answer?
Create a function called randmatrix that takes input from the script and returns a mxn matrix v of r...
Questions
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.04.2020 02:30
![question](/tpl/images/cats/mat.png)
Mathematics, 15.04.2020 02:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.04.2020 02:30
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.04.2020 02:30
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.04.2020 02:30
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.04.2020 02:30