Solved


Sum of the squares of optimus
Get the sum of the squares of primes given limit input x Ex. x = 10, output = 2^2 + 3^2 + 5^2 + 7^2

9 years ago

Solved


Square of the sum of optimus
Get the square of the sum of all primes given the limit input x

9 years ago

Solved


Mode of Optimus!!!
Get the mode of primes of input x When you get the output, you'll know what mode Optimus is always using :)

9 years ago

Solved


Check that given number is 3*n
Check that input of multiple of three (3*n). if given number is included in 3*n, print true. (hint: use mod)

9 years ago

Solved


Calculate this one!
Using matlab calculate y y=(e^2)+100/20+sin(pi)

9 years ago

Solved


Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

9 years ago

Solved


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

9 years ago

Solved


cody exploit
I made this one to bring attention to a cody exploit that a lot of people seem to be abusing.

9 years ago

Solved


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

9 years ago

Solved


Resort number using given index!
Resort matrix [a] using given index [b]. For example, if a=[2 5 3 5]; b=[4 1 2 3]; , the result is [5 2 5 3]. (hint: y...

9 years ago

Solved


Sort matrix a according to ascending order of B!
To be specific, A=[9 3 1 3] B=[1 3 2 4] are provided, ascending sorting of B is [B(1) B(3) B(2) B(4)]. Thus ...

9 years ago

Solved


Extract a part of matrix!
There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

9 years ago

Solved


Delete useless part of data
When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting. De...

9 years ago

Solved


Make this function tell you to go to bed.
Don't change the template. Just run it at a time at which it tells you to go to bed.

9 years ago

Solved


Pushing the envelope
Find the largest sized code to return... *nothing*.

9 years ago

Solved


Calculate z=x^2+y^2
There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

9 years ago

Solved


Calculate polynomial equation
Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

9 years ago

Solved


Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

9 years ago

Solved


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

9 years ago

Solved


Basic commands - How old is your matlab version?
Please make a function, which gives amount of days since release it's version.

9 years ago

Solved


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

9 years ago

Solved


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

9 years ago

Solved


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

9 years ago

Solved


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

9 years ago

Solved


Exponential Growth and Decay
Calculus time!! Find dx/dy or (k) Given y(0), y(t) and t

9 years ago

Solved


While I am not equal
Iterate by z(input) until not equal to baseline. Output will be equal to number of iterations x = -5 y = 8 z = 3 output = 5

9 years ago

Answered
How to code a function of the Probability mass function of the Poisson binomial distribution
You may use nchoosek. F_k is nothing but a k-element subset of {1,2,3,...,n}. The sum is over all possible F_k, which can be gen...

9 years ago | 0

| accepted

Solved


Leap year or Not
Check if a given year is Leap year or not.

9 years ago

Solved


ADD TWO NUMBERS
To add two numbers a and b, then store in y

9 years ago

Solved


What's my favourite food?
The spicier the better.

9 years ago

Load more