Solved


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

9 years ago

Solved


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

9 years ago

Solved


Create a constant offset.
Add a constant offset to an array. For example: a=[1 3 5 9]; offset=2; y=[3 5 7 11];

9 years ago

Solved


Non trivial identities - summation
Return x by adding a random number to it.

9 years ago

Solved


Non trivial identities - flipping
Return x by flipping it.

9 years ago

Solved


Non trivial identities - differentiation
Return x by differentiating it.

9 years ago

Solved


Non trivial identities - complexification
Return x by complexifying it.

9 years ago

Solved


Non trivial identities - reshape
Return x by reshaping it.

9 years ago

Solved


Non trivial identities - absolute value
Return x by computing its absolute value.

9 years ago

Solved


Non trivial identities - open your eyes
Return x by using your eyes.

9 years ago

Solved


Non trivial identities - multiplication
Return x by multiplying it with a random number.

9 years ago

Solved


Non trivial identities - replication
Return x by replicating itself in any dimension.

9 years ago

Solved


Geometrical meaning of determinant
Given two vectors x,y, in 2D or three vectors x,y,z in 3D space, compute the area (or volume) of the parallelogram they define. ...

9 years ago

Solved


Return identical vector by differentiation/integration
Given vector x, return the same x by exploiting discrete differentiation and integration.

9 years ago

Solved


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

9 years ago

Solved


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

9 years ago

Solved


Rutgers Homework 3 Problem 2
Please create a function that answers homework problem 3.2. You can find the full problem statement here: https://drive.go...

9 years ago

Solved


Upper Matrix in LU Decompositon
Get the Upper Matrix of the Matrix Given Please have a pride on not using built-in Matlab functions :)

9 years ago

Solved


Sum of digits of 2^n number
Given n, find the *cumulative* sum of the digits of the number 2^n (where n>=0). Example: Input n = 7 Output sum = 2 ...

9 years ago

Solved


Rutgers Homework 3 Problem 4
Please solve homework 3 problem 4. You can find the full problem statement here: https://drive.google.com/file/d/0B9G6VyQG...

9 years ago

Solved


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

9 years ago

Solved


Rutgers Homework 3 Problem 1
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

9 years ago

Solved


Remove collinear points in a set of 2D points defining a polygon
Consider a polygon that is obtained by joining a set of 2D points whose coordinates are stored in matrix P=[x,y]. Write a functi...

9 years ago

Solved


Check if a directory is on the current MATLAB search path
Given a directory name as a string, return true if the directory is on the current MATLAB search path, and false otherwise.

9 years ago

Solved


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

9 years ago

Solved


Convert a vector to a lower triangular matrix
I now have a row vector and I want to convert it to a lower trilangular matrix. The rows of the lower trilangular matrix have...

9 years ago

Solved


Number of primes
Count the number of primes less than 'n'.

9 years ago

Solved


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

9 years ago

Solved


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...

9 years ago

Solved


Sudoku square
We have a small sudoku square, but we miss one number. x=[ 1 5 4; 8 6 3; 0 9 7]; Make a function, where output is fi...

9 years ago

Load more