解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


kmph to mps
convert kilometer per hour to meter per second

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


Kinetic energy calculation

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


Laws of motion 2

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

解決済み


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

5ヶ月 前

さらに読み込む