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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 04.07.2019 12:10, Ryantimes2
On a average work day more than work place firs are reorted
Answers: 1
image
Engineering, 04.07.2019 18:10, heidiburgos1own6c0
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:20, yasyyas646646
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
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 in other subjects:

Konu
Mathematics, 19.11.2020 17:00
Konu
Mathematics, 19.11.2020 17:00