Risolto


UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Temperature Conversion 3

quasi 5 anni fa

Risolto


Temperature Conversion 2

quasi 5 anni fa

Risolto


Energy Conversion 2

quasi 5 anni fa

Risolto


Energy Conversion 1

quasi 5 anni fa

Risolto


Temperature Conversion 1

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

quasi 5 anni fa

Risolto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

circa 5 anni fa

Risolto


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

circa 5 anni fa

Risolto


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

circa 5 anni fa

Risolto


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

circa 5 anni fa

Risolto


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


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

circa 5 anni fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

circa 5 anni fa

Carica altro