Resuelto


Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

18 días hace

Resuelto


Find all the indices when a value repetition occurs
Find all the sequences of consecutive repeated numbers in a numeric array, returning the indices where each sequence starts and ...

18 días hace

Resuelto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

18 días hace

Resuelto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

18 días hace

Resuelto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

18 días hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

19 días hace

Resuelto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

19 días hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

19 días hace

Resuelto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

19 días hace

Resuelto


Inner product of two vectors
Find the inner product of two vectors.

19 días hace

Resuelto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

19 días hace

Resuelto


Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

19 días hace

Resuelto


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

19 días hace

Resuelto


Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

19 días hace

Resuelto


Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

19 días hace

Resuelto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

19 días hace

Resuelto


How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

19 días hace

Resuelto


Rotating the plane region bounded by two polynomials
Let p and q be n-degree and m-degree polynomials with n >= m >= 1. Consider clockwise rotate the plane region bounded by these t...

8 meses hace

Resuelto


Rotating 2d curve around a vertical axis
Let p be an even-degree polynomial such that has a unique vertex (single global extremum). Consider the counterclockwise rotatio...

8 meses hace

Resuelto


Breaking straight lines
Let P be a point in Oxy plane and let p be a 1×2 array representing an one-degree or zero-degree polynomials, if its first entry...

8 meses hace

Resuelto


Comparing to scale all terms versus one term of even-degree polynomial by the same scale factor
Let p be an even-degree polynomial with positive leading coefficient. Consider the scale factor, k, that vertically transforms ...

8 meses hace

Resuelto


Scaling vertically parabola by evaluating its area over an interval
Let p be a quadratic polynomial, with its axis of symmetry being the y-axis. Considering the vertical shift of its vertex to the...

8 meses hace

Resuelto


Scaling vertically functions
Given a real function by the 1×n array, x, of inputs and the 1×n array, y, of outputs, consider shifting vertically its graph by...

8 meses hace

Resuelto


Covering rectangle area of a four-pointed star polygon
Given the four-pointed star polygon formed by the rectangle, with dimensions l1xl2, and four triangles, with height, h, from the...

8 meses hace

Resuelto


Translating even-degree polynomial by its vertex to the origin
Let p be an even-degree polynomial such that has a unique vertex (single global extremum). Consider its translation by shifting ...

8 meses hace

Resuelto


Shifting vertically even-degree polynomial's graph by its mean over an interval
Let p be an even-degree polynomial with positive leading coefficient. Consider its vertical translation by shifting its graph by...

8 meses hace

Resuelto


Shifting vertically a function's graph
Given a real function, f, by n input-output pairs, consider a translation in the up-down direction given by an amount k. For a ...

8 meses hace

Resuelto


Covering a 4-pointed star polygon by a circle sector
Given the area, A, of a 4-pointed star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h ...

8 meses hace

Resuelto


Covering a four-pointed star polygon by circles
Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their...

8 meses hace

Resuelto


Covering a four-pointed star polygon by rectangles
Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their...

8 meses hace

Cargar más