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

mehr als 2 Jahre 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...

mehr als 2 Jahre 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...

mehr als 2 Jahre 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...

mehr als 2 Jahre 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...

mehr als 2 Jahre ago

Solved


kmph to mps
convert kilometer per hour to meter per second

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre 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: ...

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre 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 ...

mehr als 2 Jahre 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....

mehr als 2 Jahre 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. ...

mehr als 2 Jahre 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...

mehr als 2 Jahre 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...

mehr als 2 Jahre 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...

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre ago

Solved


Add two numbers
Add two numbers (For beginners)

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre 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...

mehr als 2 Jahre ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

mehr als 2 Jahre 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 ...

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre 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: ...

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre 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...

mehr als 2 Jahre ago

Solved


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

mehr als 2 Jahre ago

Load more