1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aliina [53]
4 years ago
15

Write a function removeEvens to remove all the even numbers from input row array inRowArray which contains integer numbers. The

function removeEvens should use the mod internal function and operate on a row array of any length. Hint: Use logical indexing and the double square brackets []. Restriction: Do not use loops. For example:
inputRowArray = [1,2,3,4,5]

will produce 1 3 5

!Restrictions!

Is the correct result calculated for row array of random integers?

Is the mod function used?
Computers and Technology
1 answer:
diamong [38]4 years ago
5 0

Answer:

MATLAB code is given below

Explanation:

% Define the function.

function [ output_args] = removeEvens( input_args)

%UNTITLED Summary of this function goes here

% Detailed explanation goes here

%Remove the even number from the array using mod function.

output_args = input_args (mod(input_args,2)~=0);

%Display the message.

disp('odd Values are');

%Display the results.

disp(output_args);

%Terminate the function.

end

Function Call:

%Function Call

inputRowArray = [1,2,3,4,5]

removeEvens(inputRowArray)

You might be interested in
Write down a pair of integers whose sum is​ 0
Tems11 [23]

Answer:

-1 ans +2 are the pair of integers whose sum is 0.

3 0
3 years ago
Source code is one particular representation of a software system. It highlights some details and hides others. This is a good e
grigory [225]

Answer:

Abstraction

Explanation:

Under fundamental principles of software engineering, the term "abstraction" is simply defined as the act of highlighting some details and hiding other ones.

Thus, the correct answer among the options is Abstraction.

8 0
3 years ago
Which of the following must the designer first do in order to create the software in the following scenario? A multimedia design
Vadim26 [7]
He must explore the components of VHS films so he knows what exactly needs to be done so he software functions property.


Hope it helped,

Happy homework/ study/ exam!
8 0
4 years ago
Read 2 more answers
How to find out where an item was purchased by the upc code?
diamong [38]
There should be a search engine
3 0
3 years ago
As a technical project​ manager, you have decided to propose implementing a prototyping methodology for a small​ web-based desig
Arlecino [84]

Answer:

B: Use the prototype and revise and enhance the prototype.

Explanation:

Before going ahead to execute any project, one must define the requirements for the project. It is only after the requirements for the project is known that one can go ahead to develop the prototype, use the prototype, revise and then enhance the prototype.

4 0
4 years ago
Other questions:
  • based on the transcript, what did broadcasting the story through the medium of radio allow welles to do?
    8·1 answer
  • Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from great
    8·1 answer
  • _____ supplement operating system software in ways that increase the security or capabilities of the computer system. firewalls,
    15·1 answer
  • Answer the following questions:
    7·1 answer
  • Over the past few years a very definite need has arisen in the electrical trades for:
    15·1 answer
  • Which of the following statements about software licensing are true? Select 3 options.
    5·1 answer
  • Write a method named printGPA that takes in as a parameter a Scanner to read in user input, and calculates a student's grade poi
    8·1 answer
  • 22. (a) List two arithmetic
    7·1 answer
  • Check your knowledge
    9·1 answer
  • A program similar to mtr, ____, is available as a command-line utility in Windows operating systems.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!