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]
3 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]3 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
Which is the most efficient way to include a space after each paragraph
TEA [102]

I think the question is referring to the tab key.

5 0
3 years ago
Read 2 more answers
Which group on the Home Ribbon allows you to add shapes to a PowerPoint slide?
skad [1K]
It is under the drawings group.  
8 0
3 years ago
Read 2 more answers
How would you convert this base 10 decimal into a base 2number?:
Tju [1.3M]

Answer:

The method of converting a base 10 or decimal number into base 2 or binary number is as following:-

  1. Divide the decimal number by 2 and store it's remainder.
  2. keep dividing the decimal number by 2 until it becomes 0 and also keep storing it's remainder.
  3. Then write the remainders in reverse order.This the binary number.

Refer the attached image for better explanation.

6 0
3 years ago
Which type of software is created and updated by a worldwide community of programmers and is available for​ free?
Ede4ka [16]
Open source is created and updated by a worldwide community of programmers and is available for​ free. Many students are in luck, as they can easily study publicly accessible codes and have a possibility to make better software. It also has lots of advantages, such as getting <span>high-quality results when the source code is passed around, tested and fixed.The most important thing - it<span> is a valuable learning opportunity for programmers and opportunity to improve their skills.</span></span>
5 0
3 years ago
List 2 negative impacts of cybersecurity.<br><br><br><br>Answer and I will give you brainiliest ​
Nitella [24]

Answer:

Cyber security can be used for good but nevertheless some people will find ways to do bad things. Basically the negative impacts of cyber security is the opposite to the good type of cyber security they take advantage of it and exploit computer system to do what they want. An example to this is planting a malware on the victim's computer or using a DDOS attack on a WiFi router the possibility are endless.

5 0
3 years ago
Other questions:
  • Exit network systems, information support, and software development are all careers in which career cluster?
    10·1 answer
  • What aspect of the internet makes it fault-tolerant?
    6·1 answer
  • Please help!! Even if you help a little I will be very thankful!
    7·1 answer
  • Jeremy wants to run a program file from the command prompt. Which of the following should Jeremy type in the command prompt wind
    8·2 answers
  • Which one of the following is a correct declaration for a method named passAList that has as arguments an array list myList of s
    8·1 answer
  • Select the correct answer.
    5·2 answers
  • Assume that a file contains students' ids, full names, and their scores (Assignments grade, quizzes grade,
    5·1 answer
  • Which of the following operating systems would allow a user to add functionality and sell or give away their versions?
    8·1 answer
  • What would a system unit that is integrated with the display and keyboard would be considered?
    6·1 answer
  • Are tigers and goldfish related
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!