Gelöst


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

2 Tage vor

Gelöst


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

2 Tage vor

Gelöst


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

2 Tage vor

Gelöst


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

2 Tage vor

Gelöst


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

2 Tage vor

Gelöst


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

2 Tage vor

Gelöst


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

2 Tage vor

Gelöst


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

2 Tage vor

Gelöst


Create a vector
Create a vector from 0 to n by intervals of 2.

2 Tage vor

Gelöst


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

2 Tage vor

Gelöst


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

2 Tage vor

Gelöst


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

2 Tage vor

Gelöst


Return area of square
Side of square=input=a Area=output=b

2 Tage vor

Gelöst


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

2 Tage vor

Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

2 Tage vor

Gelöst


Find the max element of the array
Find the max element of the array

3 Tage vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

3 Tage vor

Gelöst


to the 2 all elements
to the 2 all elements

3 Tage vor

Gelöst


the average value of the elements
Calculate the average value of the elements in the array

3 Tage vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

3 Tage vor

Gelöst


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

3 Tage vor

Gelöst


High Five!
Write a function that takes a number x and returns y = 'High Five' if x is not equal to five. Return y = 'Denied' if the number ...

3 Tage vor

Gelöst


A Five Introduction
Write a function that takes a number x as an input and returns the same value as y, unless x = 5, in which case the function sho...

3 Tage vor

Gelöst


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

3 Tage vor

Gelöst


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

3 Tage vor

Gelöst


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

3 Tage vor

Gelöst


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

3 Tage vor

Gelöst


Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns. Cases from 1 to 3, b = true. Otherwise, b = false.

3 Tage vor

Gelöst


NOT
If a not equal to zero, b = true, else, b = false.

3 Tage vor

Gelöst


OR
If a greater than zero or c less than 10, b = true, else, b = false.

3 Tage vor

Mehr laden