解決済み


Numbers spiral diagonals (Part 1)
Inspired by Project Euler n°28 et 58. A n x n spiral matrix is obtained by starting with the number 1 and moving to the right...

3年以上 前

解決済み


Highly divisible triangular number (inspired by Project Euler 12)
Triangular numbers can be calculated by the sum from 1 to n. For example, the first 10 triangular numbers are: 1, 3, 6, 10, ...

3年以上 前

解決済み


Sums of cubes and squares of sums
Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

3年以上 前

解決済み


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

3年以上 前

解決済み


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

3年以上 前

解決済み


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

3年以上 前

解決済み


Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

3年以上 前

解決済み


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

3年以上 前

解決済み


reverse string
input='rama' output='amar'

3年以上 前

解決済み


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


kmph to mps
convert kilometer per hour to meter per second

3年以上 前

解決済み


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

3年以上 前

解決済み


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

3年以上 前

解決済み


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

3年以上 前

解決済み


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

3年以上 前

解決済み


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

3年以上 前

解決済み


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.

3年以上 前

解決済み


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

3年以上 前

解決済み


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

3年以上 前

解決済み


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

3年以上 前

解決済み


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

3年以上 前

解決済み


Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

3年以上 前

解決済み


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

3年以上 前

解決済み


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

3年以上 前

解決済み


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

3年以上 前

解決済み


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

3年以上 前

解決済み


Square root of a number
Write a code that will output the square root of x.

3年以上 前

解決済み


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

3年以上 前

さらに読み込む