解決済み


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

1日 前

解決済み


Can the given sides form a triangle?
Can the three given sides form a triangle?

1日 前

解決済み


Percentage profit:2
If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

1日 前

解決済み


Percentage profit
If you are buying at x dollar, what will be the selling price for making the r% profit?

1日 前

解決済み


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

1日 前

解決済み


Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.

1日 前

解決済み


To convolve two vectors
To convolve two vectors

1日 前

解決済み


Maximum sum from any 2 numbers with a variable number of inputs
Given a variable number of inputs, combine any 2 numbers from the inputs and output the maximum sum the combinations can generat...

1日 前

解決済み


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

1日 前

解決済み


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

1日 前

解決済み


Create tangent function out of sin and cos
Please don't use tan(x) directly

1日 前

解決済み


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

1日 前

解決済み


Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0 Example x = [ 3 3 4 6 1] ...

1日 前

解決済み


Logarithm with base other than 'e'
The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for ...

1日 前

解決済み


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

1日 前

解決済み


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

1日 前

解決済み


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

1日 前

解決済み


Return the length of the longest word in the string.
Example: Input s='A fractal is a natural phenomenon or a mathematical set that exhibits a repeating pattern that display...

1日 前

解決済み


Solve the following system of equations.
x - 2y + 3z = a 2x + y + z = 4 -3x + 2y - 2z = -10

1日 前

解決済み


Solve the system of equations.
_Ax=b_ * _A_ - square coefficient matrix * _b_ - right side column vector Find vecor _x_.

1日 前

解決済み


Calculate the eigenvalues of A.
Calculate the sum of the eigenvalues of A. If it's odd return cubed else return 54.

1日 前

解決済み


Find the sum of the negative elements under the main diagonal.
Example Input A=[1 2; -3 0] Output -3

1日 前

解決済み


How many hours are there in a day in Italy?
Remember "European Summer Time"

1日 前

解決済み


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

1日 前

解決済み


determine amount cookies left
started with 3 cookies and you never ate any how many are left

1日 前

解決済み


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

1日 前

解決済み


Temperature question
get the temperature...in celcius

1日 前

解決済み


Add 3 (x<=100) Or Subtract 100 and add 3(100<x)
Add 3 to every element. However, if the value is greater than 100, subtract 100 and add 3. eg. input x = [45 106; 67 1...

1日 前

解決済み


The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

1日 前

解決済み


Case-insensitive Character Detection
Find the index of a particular character in a string ignoring case. Example Input: x = 'aAbhhfdf' n = 'a' ...

1日 前

Load more