Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Non trivial identities - flipping
Return x by flipping it.

más de 9 años hace

Resuelto


Non trivial identities - differentiation
Return x by differentiating it.

más de 9 años hace

Resuelto


Non trivial identities - complexification
Return x by complexifying it.

más de 9 años hace

Resuelto


Non trivial identities - reshape
Return x by reshaping it.

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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.

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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.

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años 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...

más de 9 años hace

Resuelto


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

más de 9 años hace

Cargar más