Solved


Create tangent function out of sine function only
Please don't use cosine and tangent functions

13 days ago

Solved


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

13 days ago

Solved


Create a code for XNOR
Given two inputs, output XNOR of those two

13 days ago

Solved


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

13 days ago

Solved


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

13 days ago

Solved


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

13 days ago

Solved


Converts numbers into characters
Converts numbers into characters

13 days ago

Solved


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

13 days ago

Solved


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

13 days ago

Solved


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

13 days ago

Solved


Create sine function out of cosine
Please don't use sin(x) directly

13 days ago

Solved


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

13 days ago

Solved


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

13 days ago

Solved


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

13 days ago

Solved


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

13 days ago

Solved


Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

13 days ago

Solved


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

13 days ago

Solved


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

13 days ago

Solved


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

13 days ago

Solved


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

13 days ago

Solved


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

13 days ago

Solved


Create cosine function out of sine
Please dont use cos(x) directly

13 days ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

13 days ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

13 days ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

13 days ago

Solved


Return longest string in 1-D array of strings
Find the longest string in an array of strings. Return an empty string if the initial array is empty. If there are multiple stri...

13 days ago

Solved


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

13 days ago

Solved


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

13 days ago

Solved


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

13 days ago

Solved


kmph to mps
convert kilometer per hour to meter per second

13 days ago

Load more