Solved


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

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

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

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

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

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

29 days ago

Solved


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

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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


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

29 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

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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


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

29 days ago

Solved


kmph to mps
convert kilometer per hour to meter per second

29 days ago

Solved


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

29 days ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

29 days ago

Solved


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

29 days ago

Solved


Kinetic energy calculation

29 days ago

Solved


Laws of motion 5
Calculate the force is u are given mass and acceleration.

29 days ago

Solved


Laws of motion 2

29 days ago

Solved


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

29 days ago

Solved


Hemisphere Volume on Top of a Cylinder
This MATLAB function has to calculate the volume of a hemisphere placed on top of a cylinder, given valid inputs. It takes the r...

29 days ago

Solved


Determine if input is greater than pi
Evaluate if given number is greater than pi. If greater, return true; else, return false.

29 days ago

Solved


Linear system of equations
Solve the system of equations in three variables.

29 days ago

Load more