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 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30ยฐc air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
Answers: 3
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
History, 02.04.2021 23:20
question
Mathematics, 02.04.2021 23:20
question
Biology, 02.04.2021 23:30
question
Mathematics, 02.04.2021 23:30
question
Health, 02.04.2021 23:30
question
Biology, 02.04.2021 23:30
Questions on the website: 13722360