Question: using MatLab a ) Create a function named no _ repeats that takes one row vector of positive integers as an input and returns one
using MatLab a Create a function named norepeats that takes one row vector of positive integers as an
input and returns one row vector of positive integers as an output. The output should contain
every integer in the input array, in ascending order this time use of the sort function is
allowed with no repeat entries.
b Create a function named powers that takes two positive integers as inputs and returns one
row vector of positive integers as an output. The output should contain all positive integer
powers of the first input that are less than or equal to the second input. For example, and input of
should return an output of
c Create a function named powers that takes two positive integers as inputs, and returns one
row vector of positive integers as an output. Using powers and norepeats, it should return all
positive integers less than or equal to the second input which are a positive integer power of a
positive integer that is less than or equal to the first input. For example, and input of
should return all powers of and that are less than or equal to The output vector should
contain no repeated entries, and should be in ascending order.
d Run powers with inputs of and do not suppress the output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
