subject
Engineering, 23.10.2019 17:00 lexirandall19

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:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
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
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:10
Courses that are developed by subject matter experts, internal or extemal to the college or university. these programs are marketed by the school (clo2) marks a)-vocational schools b)-vendor training c)-colleges & universities d)-continuing education programs
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
Mathematics, 05.05.2021 03:50
question
Biology, 05.05.2021 03:50
Questions on the website: 13722360