A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Non trivial identities - flipping
Return x by flipping it.

plus de 9 ans il y a

A résolu


Non trivial identities - differentiation
Return x by differentiating it.

plus de 9 ans il y a

A résolu


Non trivial identities - complexification
Return x by complexifying it.

plus de 9 ans il y a

A résolu


Non trivial identities - reshape
Return x by reshaping it.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Charger plus