Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


kmph to mps
convert kilometer per hour to meter per second

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


Kinetic energy calculation

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


Laws of motion 2

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Gelöst


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

etwa ein Monat vor

Mehr laden