Community Profile

##### Last seen: etwa ein Monat ago
82 total contributions since 2020

View details...

Contributions in
View by

Solved

Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

etwa ein Monat ago

Solved

Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

etwa ein Monat ago

Solved

Product of elements in row
Product of matrix such that a=[3 3 1] b=9

etwa ein Monat ago

Solved

Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

etwa ein Monat ago

Solved

02 - Vector Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

etwa ein Monat ago

Solved

Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

etwa ein Monat ago

Solved

Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

etwa ein Monat ago

Solved

Max of a Vector
Write a function to return the max of a vector

etwa ein Monat ago

Solved

Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

etwa ein Monat ago

Solved

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

etwa ein Monat ago

Solved

Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

etwa ein Monat ago

Solved

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

etwa ein Monat ago

Solved

Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

etwa ein Monat ago

Solved

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

etwa ein Monat ago

Solved

Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

etwa ein Monat ago

Solved

Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

etwa ein Monat ago

Solved

Area of a circle
Find the value for area of the circle if diameter is given

etwa 2 Monate ago

Solved

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

etwa 2 Monate ago

Solved

Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

etwa 2 Monate ago

Solved

The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

etwa 2 Monate ago

Solved

Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

etwa 2 Monate ago

Solved

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

etwa 2 Monate ago

Solved

Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

etwa 2 Monate ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

etwa 2 Monate ago

Solved

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

etwa 2 Monate ago

Solved

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

etwa 2 Monate ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

etwa 2 Monate ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

etwa 2 Monate ago

Solved

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

etwa 2 Monate ago

Solved

Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

etwa 2 Monate ago