已解决


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

3 years 前

已解决


Spherical Volume
Calculate the volume of a sphere.

3 years 前

已解决


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

3 years 前

已解决


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

3 years 前

已解决


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

3 years 前

已解决


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

3 years 前

已解决


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

3 years 前

已解决


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 years 前

已解决


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

3 years 前

已解决


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

3 years 前

已解决


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

3 years 前

已解决


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

3 years 前

已解决


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

3 years 前

已解决


pressure to dB?
given x ratio of pressure, find corresponding y dB

3 years 前

已解决


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

3 years 前

已解决


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

3 years 前

已解决


Array of Ones
Create a 100 X 100 array of ones.

3 years 前

已解决


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

3 years 前

已解决


radius of a spherical planet
You just measured its surface area, that is the input.

3 years 前

已解决


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

3 years 前

已解决


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

3 years 前

已解决


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

3 years 前

已解决


length of a vector
Find twice the length of a given vector.

3 years 前

已解决


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

3 years 前

已解决


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

3 years 前

已解决


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

3 years 前

已解决


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

3 years 前

已解决


03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

3 years 前

已解决


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

3 years 前

已解决


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

3 years 前

加载更多