subject
Engineering, 04.12.2019 22:31 AshyCakes

Write a program(matlab) that asks the user to input a vector of integers of arbitrary length. the program then counts the number of elements, the number of positive elements, and the number of negative elements divisible by 3 .the program displays the vector that was entered and the results in sentence form, i. e. "the vector has xx elements. xx elements are positive and xx elements are negative divisible by 3", where xx stands for the corresponding number of elements. execute the program and when the program ask the user to input a vector type randi([-20 20],1,16). this creates a 16-element vector with random integers between –20 and 20.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
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
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
You know the right answer?
Write a program(matlab) that asks the user to input a vector of integers of arbitrary length. the pr...
Questions
question
Physics, 29.01.2021 20:30
question
Mathematics, 29.01.2021 20:30
Questions on the website: 13722361