Community Profile

photo

Abhinav


MIT Lincoln Lab

Active since 2015

Followers: 0   Following: 0

Message

Statistics

  • First Review
  • Solver

View badges

Feeds

View by

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

mer än 8 år ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

mer än 8 år ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

mer än 8 år ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

mer än 8 år ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

mer än 8 år ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

mer än 8 år ago