Community Profile

# Justin Illingworth

241 2019 年以降の合計貢献数

#### Justin Illingworth's バッジ

Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

11日 前

Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

11日 前

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

Square
square root of x

Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

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

Area of a disk
Find the area of a disk or circle. x= radius of the disk.

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

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

Counting down
Create a vector that counts from 450 to 200 in increments of 10.

square number
Square a number

Find Index of maximum Value and maximum Value of a vector
Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector. Example: [...

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

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

Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

2ヶ月 前

Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

2ヶ月 前

Calculate the area of a circle
Given a circle of diameter x calculate its area

2ヶ月 前

Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

2ヶ月 前

Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

2ヶ月 前

Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

2ヶ月 前

Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

2ヶ月 前

Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

2ヶ月 前

Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

2ヶ月 前

Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

2ヶ月 前