Gelöst


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

9 Monate vor

Gelöst


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

9 Monate vor

Gelöst


square root
Find the square root (y) of an input (x).

9 Monate vor

Gelöst


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

9 Monate vor

Gelöst


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

9 Monate vor

Gelöst


factorial of a number x
Factorial of a number x

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


num to char
make num into char

9 Monate vor

Gelöst


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

9 Monate vor

Gelöst


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

9 Monate vor

Gelöst


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


Spherical Volume
Calculate the volume of a sphere.

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


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

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

9 Monate vor

Gelöst


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

9 Monate vor

Gelöst


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

9 Monate vor

Gelöst


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,2,3]; Returns 1.

9 Monate vor

Gelöst


Find the mean
Find the mean of a given sdet of numbers in a vector x

9 Monate vor

Gelöst


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

9 Monate vor

Gelöst


round pi
round pi

9 Monate vor

Gelöst


Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

9 Monate 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

9 Monate vor

Gelöst


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

9 Monate 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

9 Monate vor

Gelöst


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

9 Monate vor

Gelöst


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

9 Monate vor

Mehr laden