Gelöst


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

mehr als 5 Jahre vor

Gelöst


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

mehr als 5 Jahre vor

Gelöst


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

mehr als 5 Jahre vor

Gelöst


Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

mehr als 5 Jahre vor

Gelöst


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

mehr als 5 Jahre vor

Gelöst


imaginary results
Return the value of the imaginary number i to the power of input argument n.

mehr als 5 Jahre vor

Beantwortet
Moving Specific Values In Matrix By One Column
check this circshift(x,-1,2)

mehr als 5 Jahre vor | 0

Beantwortet
CALCULATE norms: l2 and l1 distances
check here L1 norm: norm(v,1) L2 norm: norm(v,2) norm between a and b: norm((b-a),p) where p can be 1,2 or inf.

mehr als 5 Jahre vor | 1

Gelöst


Create a code for XNOR
Given two inputs, output XNOR of those two

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


sign function

mehr als 5 Jahre vor

Gelöst


step function

mehr als 5 Jahre vor

Gelöst


find the index of a number

mehr als 5 Jahre vor

Gelöst


Test

mehr als 5 Jahre vor

Gelöst


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifm...

mehr als 5 Jahre vor

Gelöst


Calculate the Hamming distance between two strings
Inspired by a similar Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-dist...

mehr als 5 Jahre vor

Gelöst


frame of the matrix
Given the matrix M, return M without the external frame.

mehr als 5 Jahre vor

Gelöst


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

mehr als 5 Jahre vor

Gelöst


Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

mehr als 5 Jahre vor

Gelöst


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

mehr als 5 Jahre vor

Gelöst


Box
Give the volume of a box, x is equal to the body diagonal.

mehr als 5 Jahre vor

Gelöst


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

mehr als 5 Jahre vor

Gelöst


Square
X is a number, write a code, where Y should be the square of X.

mehr als 5 Jahre vor

Gelöst


How many bytes an image requires from RAM?

mehr als 5 Jahre vor

Gelöst


Matrix for beginners
Multiply x and y elemwise.

mehr als 5 Jahre vor

Gelöst


Estimate Pi by Monte Carlo method

mehr als 5 Jahre vor

Gelöst


Distance Travelled by Vehicle

mehr als 5 Jahre vor

Mehr laden