Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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];

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Non trivial identities - flipping
Return x by flipping it.

fast 10 Jahre vor

Gelöst


Non trivial identities - differentiation
Return x by differentiating it.

fast 10 Jahre vor

Gelöst


Non trivial identities - complexification
Return x by complexifying it.

fast 10 Jahre vor

Gelöst


Non trivial identities - reshape
Return x by reshaping it.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Mehr laden