Resuelto


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

3 meses hace

Resuelto


Calculate geostrophic current
eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); eta=eta0*exp(-(x.^2+...

3 meses hace

Resuelto


How many monitors are connected ?
How to obtain the numbers of monitors connected to your computer ?

3 meses hace

Resuelto


Two dimensional moving average
A=[1 2 3 4 5 1 2 2 2 3 2 3 3 3 4 1 1 4 4 2] B=[1 1;1 1]; % This is can be used for weight factor of moving a...

3 meses hace

Resuelto


Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; ...

3 meses hace

Resuelto


Move if I am Optimus Prime
If the number is a prime, roll out!

3 meses hace

Resuelto


Create cosine function out of sine
Please dont use cos(x) directly

3 meses hace

Resuelto


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

3 meses hace

Resuelto


Combine the digits to output numbers
input could be of any length e.g. 1. in1 = 1 in2 = 2 output = 12 2. in1 = 2 in2 = 1 in3 = 0 output = 210

3 meses hace

Resuelto


Creating a code via test suite :)
Given the test suites, create a code that would fit them :) *Clue: Pascal's Triangle

3 meses hace

Resuelto


Gaussian elimination
Get the Gussian elimination of the Matrix Given You cannot use built-in Matlab functions triu :)

3 meses hace

Resuelto


Primes Checker
Given variable inputs Check if they are prime numbers

3 meses hace

Resuelto


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

3 meses hace

Resuelto


Create sine function out of cosine
Please don't use sin(x) directly

3 meses hace

Resuelto


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1...

3 meses hace

Resuelto


Find Factrorial without using built-in function
A number is given, you have to find the factorial of the number without using built-in factroial function. You may use loops....

3 meses hace

Resuelto


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

3 meses hace

Resuelto


Create tangent function out of cosine only
Please don't use tangent and sine functions

3 meses hace

Resuelto


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

3 meses hace

Resuelto


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

3 meses hace

Resuelto


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0; 0...

3 meses hace

Resuelto


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

3 meses hace

Resuelto


Maximum sum from any 2 numbers with a variable number of inputs
Given a variable number of inputs, combine any 2 numbers from the inputs and output the maximum sum the combinations can generat...

3 meses hace

Resuelto


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

3 meses hace

Resuelto


Beat the test suite if you can :)
Solve this problem based on clues in the test suite.

3 meses hace

Resuelto


Create tangent function out of sine function only
Please don't use cosine and tangent functions

3 meses hace

Resuelto


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

3 meses hace

Resuelto


Create tangent function out of sin and cos
Please don't use tan(x) directly

3 meses hace

Resuelto


Refresh your system of equations
Given square matrix, and solution vector, find the values of the variables Example: xyz = [1 -1 2; 0 2 5; 4 0 -3]; //x-y+2...

3 meses hace

Resuelto


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

3 meses hace

Cargar más