Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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 :)

casi 10 años hace

Resuelto


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)

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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;

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

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

casi 10 años hace | 0

| aceptada

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más