Solved

Is the input divisible by 3?

Return true if the input is divisible by 3 and false if not.

meer dan 9 jaar ago

Solved

Volume and area of a sphere

Input(r) - radius Output([v,s]) - volume and area

meer dan 9 jaar ago

Solved

How many digits are there?

Input(s) - any string Output(n) - number of digits within string s

meer dan 9 jaar ago

Solved

Calculate the integral of the polynomial

for e.g. in = [3 2 1] out = [1 1 1 0]

meer dan 9 jaar ago

Solved

calculate linear convolution two vectors

for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

meer dan 9 jaar ago

Solved

Number of odd and even elements within matrix

Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...

meer dan 9 jaar ago

Solved

Find the minimum element of the matrix

Example: If x = [3 9; 5 2] then y = 2

meer dan 9 jaar ago

Solved

find the roots of a quadratic equation

for e.g x = [ 2 -1 -3] y = [1.5 -1]

meer dan 9 jaar ago

Solved

Temperature conversion

Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

meer dan 9 jaar ago

Solved

Can I make a right triangle ?

Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

meer dan 9 jaar ago

Solved

Calculate the derivative of a polynomial

Example: in = [ 1 1 1 ] out = [ 2 1 ]

meer dan 9 jaar ago

Solved

Vector of numbers divisible by 3

* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

meer dan 9 jaar ago

Solved

Sum the numbers on the main diagonal

Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

meer dan 9 jaar ago

Solved

Simple problem creating a function from an abstract specification.

MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous...

meer dan 9 jaar ago

Solved

Procrustean bed

Given a vector x and an integer n, convert x to a vector of length n by (1) chopping off the end if it is too long, or (2) addin...

meer dan 9 jaar ago

Solved

Who invented zero?

We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

meer dan 9 jaar ago

Solved

Who has power to do everything in this world?

There is only one person who is older than this universe. He is Indian version of Chuck Norris.

meer dan 9 jaar ago

Solved

Convolution Power

Create the convolution-power vector from initial vector _x_ and power _n_. In other words, similar to the scalar case, raising ...

meer dan 9 jaar ago

Solved

Determine value using Look-up table method

Given a set of 2 vectors x and y related in a certain way, you are supposed to find value of y (ydash) given a particular value ...

meer dan 9 jaar ago

Solved

Try 1.5.4: Celsius to Fahrenheit

Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

meer dan 9 jaar ago

Solved

Perl 3: shift

_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

meer dan 9 jaar ago