A résolu


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

plus d'un an il y a

A résolu


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

plus d'un an il y a

A résolu


Determine the square root
Determine the square root of the value the user has entered, n.

plus d'un an il y a

A résolu


Convert radians to degrees
Given input in radians, output to degrees

plus d'un an il y a

A résolu


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

plus d'un an il y a

A résolu


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'

plus d'un an il y a

A résolu


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

plus d'un an il y a

A résolu


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

plus d'un an il y a

A résolu


Remove the Zero
Given an array n, remove all zeros

plus d'un an il y a

A résolu


y equals x divided by 2
function y = x/2

plus d'un an il y a

A résolu


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

plus d'un an il y a

A résolu


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

plus d'un an il y a

A résolu


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

plus d'un an il y a

A résolu


CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5

plus d'un an il y a

A résolu


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

plus d'un an il y a

A résolu


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

plus d'un an il y a

A résolu


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

plus d'un an il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

plus d'un an il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

plus d'un an il y a

A résolu


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

plus d'un an il y a

Charger plus