Solved


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

7 years ago

Solved


Repeat elements of a vector
Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

7 years ago

Solved


factorial
calculate x!

7 years ago

Solved


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

7 years ago

Solved


Check prime numbers
Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

7 years ago

Solved


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

7 years ago

Solved


Square
square root of x

7 years ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

7 years ago

Solved


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

7 years ago

Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

7 years ago

Solved


square a number twice with square root of 4/5
square a number twice with square root of 4/5

7 years ago

Solved


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

7 years ago

Solved


Perimeter of a square!
Calculate the circumference of the square whose side is n

7 years ago

Solved


Triangle???
Calculate the circumference of an equilateral triangle with x

7 years ago

Solved


Sum sum!!!
Sum the numbers from 1 to n

7 years ago

Solved


Calculate the square root of a number
Input a Output b = srt(a)

7 years ago

Solved


calculate the length of matrix
input 1 array, calculate the length

7 years ago

Solved


Find the max element of the array
Find the max element of the array

7 years ago

Solved


to the 2 all elements
to the 2 all elements

7 years ago

Solved


easy problem
Find the last element of the array

7 years ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

7 years ago

Solved


Converts numbers into characters
Converts numbers into characters

7 years ago

Solved


Duplicate all elements in the array
Duplicate all elements in the array

7 years ago

Solved


Chào các bạn.
Cho 3 số. Tính tổng của chúng

7 years ago

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

7 years ago

Solved


What time can I drive after drinking?
At T o'clock, after a hard day of Matlab, I immediately start drinking and treat myself to N pints of tasty beer. Each beer I dr...

7 years ago

Solved


Pascal's Equilateral triangle inside a Matrix!!!
Given a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'. number of row, n = ...

7 years ago

Solved


Efficiency of a single phase Transformer
Calculate the efficiency of a single phase transformer whose KVA rating is A KVA, loading factor x,power factor p,full load copp...

7 years ago

Solved


Float like a cannonball
Given gravity on earth (g=9.81 [m/s/s]) find the distance s [m] by a cannonball propelled at a speed of u [m/s] from the origin ...

7 years ago

Solved


Square root of number
Square root of given number.

7 years ago

Load more