Solved


Integer or Float?
Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

nästan 6 år ago

Solved


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

nästan 6 år ago

Solved


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

nästan 6 år ago

Solved


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

nästan 6 år ago

Solved


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

nästan 6 år ago

Solved


kmph to mps
convert kilometer per hour to meter per second

nästan 6 år ago

Solved


Equal to their cube
Tell me three real numbers that are equal to their cubes?

nästan 6 år ago

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

nästan 6 år ago

Solved


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

nästan 6 år ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

nästan 6 år ago

Solved


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

nästan 6 år 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 ...

nästan 6 år ago

Solved


04 - Scalar Equations 3
Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

nästan 6 år ago

Solved


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

nästan 6 år ago

Solved


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

nästan 6 år ago

Solved


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

nästan 6 år ago

Solved


Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

nästan 6 år ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

nästan 6 år ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

nästan 6 år ago

Solved


Add two numbers
Add two numbers (For beginners)

nästan 6 år ago

Solved


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

nästan 6 år ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

nästan 6 år ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

nästan 6 år ago

Solved


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

nästan 6 år ago

Solved


Rounding
Round 10.67 and make 'y' equal to that number.

nästan 6 år ago

Solved


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

nästan 6 år ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

nästan 6 år ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

nästan 6 år ago

Solved


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

nästan 6 år ago

Solved


only input
Return the output without writing any code into the function.

nästan 6 år ago

Load more