Feeds
已解决
Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]
1 year 前
已解决
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...
1 year 前
已解决
Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33
1 year 前
已解决
Find The area of the square
Given that the length of the side of a square is x, find the area.
1 year 前
已解决
surface of a spherical planet
you just discovered its circumference, that is the input.
1 year 前
已解决
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
1 year 前
已解决
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.
1 year 前
已解决
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
1 year 前
已解决
Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239
1 year 前
已解决
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
1 year 前
已解决
Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.
1 year 前
已解决
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
1 year 前
已解决
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...
1 year 前
已解决
Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...
1 year 前
已解决
Given length x find the area y of the square
Given length x find the area y of the square
1 year 前


