Community Profile

# Ben Vien

Last seen: 10日 前 2020 以来アクティブ

Research Officer at Monash University

バッジを表示

#### Content Feed

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

9ヶ月 前

Subtract two numbers

1年以上 前

Create and Transpose Matrix

1年以上 前

Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

1年以上 前

Calculate the CIRCUMFERENCE of circle.
Given the radius is 2, the circumference will be 12.5663.

1年以上 前

Archimedes principle
According to Archimedes principle, the buoyancy force is equal to the weight of fluid displaced by the submerged portion of an o...

1年以上 前

Find Logic 13

1年以上 前

1年以上 前

Find Sum of array

1年以上 前

Find Logic 15

1年以上 前

Find Logic 16

1年以上 前

Find Logic 17

1年以上 前

Find Logic 18

1年以上 前

Find Logic 19

1年以上 前

Simple sum 1

1年以上 前

Armstrong Number
Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

1年以上 前

Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

1年以上 前

Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

1年以上 前

Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

1年以上 前

Set zero

1年以上 前

Estimate Pi value by Monte Carlo method

1年以上 前

Area of a triangle given its sides

1年以上 前

Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

1年以上 前

Effective Nuclear Charge

1年以上 前

Approximate the cosine function
Without using MATLAB trigonometric functions, calculate the cosine of an argument |x| to a precision of |0.0001| *Hint:* You ...

1年以上 前

Return a list sorted by number of consecutive occurrences
Inspired by Problem 38 by Cody Team. Given a vector x, return a vector y of the values in x sorted by the number of CONSECUTIVE...

1年以上 前

Symmetric matrix
You must create a n-by-n *symmetric* matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : ...

1年以上 前

Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

1年以上 前

ベクトル [1 2 3 4 5 6 7 8 9 10]　の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける（コンマはオプション）。 x = [1, 2, 3, 4] 問題：次のベクトルを出力する関数を作成せよ。...

1年以上 前

Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

1年以上 前