subject
Engineering, 12.11.2019 22:31 mike2910

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: 2

Another question on Engineering

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
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 18:20
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
question
Engineering, 04.07.2019 19:10
With increases in magnification, which of the following occur? a. the field of view decreases. b. the ambient illumination decreases. c. the larger parts can be measured. d. the eyepiece must be raised.
Answers: 1
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
Mathematics, 19.02.2021 14:20
question
Business, 19.02.2021 14:20
question
Mathematics, 19.02.2021 14:20
question
Advanced Placement (AP), 19.02.2021 14:20
question
Mathematics, 19.02.2021 14:20
question
Mathematics, 19.02.2021 14:20
question
Mathematics, 19.02.2021 14:20
question
History, 19.02.2021 14:20
Questions on the website: 13722360