Solved


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

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

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

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

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

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

1 month ago

Solved


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

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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month 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

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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


kmph to mps
convert kilometer per hour to meter per second

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

1 month ago

Solved


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

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

1 month ago

Solved


Kinetic energy calculation

1 month ago

Solved


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

1 month ago

Solved


Laws of motion 2

1 month ago

Solved


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

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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Load more