Community Profile

Kevin

MIT Lincoln Laboratory

11 total contributions since 2014

View details...

Contributions in
View by

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

meer dan 6 jaar ago

Solved

Convert a number to its Roman representation
Convert a given number to its Roman representation. For example, if the number is 98, it should display 'XCVIII'

meer dan 6 jaar ago

Solved

Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

meer dan 6 jaar ago

Solved

Reverse a matrix
Its simple. You have to reverse a given matrix.

meer dan 6 jaar ago

Solved

Concatenate two strings
Its very easy. Just concatenate two strings.

meer dan 6 jaar ago

Solved

Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

meer dan 6 jaar ago

Solved

Array ex-OR
There are in MATLAB logical functions such as _<http://www.mathworks.co.uk/help/matlab/ref/and.html and>,_ _<http://www.math...

meer dan 6 jaar ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

meer dan 6 jaar ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

meer dan 6 jaar ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

meer dan 6 jaar ago

Solved

How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

meer dan 6 jaar ago