Community Profile

# Stephen

### USEUCOM

1,267 2019 年以降の合計貢献数

#### Stephen's バッジ

すべて表示

union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

1日 前

Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

1日 前

edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

1日 前

Decide whether determinant is zero.
Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...

14日 前

Equidistant numbers containing certain value in an interval
Given a lower and upper bound of an interval, distance between numbers, and one particular number from that interval, create an ...

14日 前

Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

14日 前

Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

14日 前

Find out Harmonic mean.
Find out Harmonic mean.

14日 前

Function composition - harder
Write a function that accepts an arbitrary number of function handles f_1, f_2, ..., f_n and returns the composition h. That is,...

14日 前

Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

14日 前

Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

14日 前

Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

14日 前

Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...

14日 前

Figurate number triangle
Check whether the input matrix is a figurate number triangle: <http://mathworld.wolfram.com/FigurateNumberTriangle.html>

14日 前

Subtract two positive numbers
Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b ...

14日 前

Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

14日 前

UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class. ...

14日 前

UICBioE240 problem 1.10
Find the number of cells in a bioreactor after a given time when doubling time is dd and initial number of cells is x. So if ...

14日 前

Ordered pairs of integers (I, J).
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the conditi...

17日 前

Four digit number ABCD reversal
write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

17日 前

Basic Operation with the middle number of odd matrix
# Take an odd matrix *like* 3-by-3 # Access the *middle element* of the matrix i.e in case of 3-by-3 matrix the index of the pa...

17日 前

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

17日 前

Square
X is a number, write a code, where Y should be the square of X.

17日 前

AK Sorting according to given order
Conventional ascending order of one digit number is [ 0, 1, 2, ......9]. Now this order is changed and stored in vector a. For e...

17日 前

Divide pi
Divide pi by x!

17日 前

Multiply pi
Multiply pi with x!

17日 前

List the households affected by leaks in water distribution
Consider the following water distribution network, where water is pumped uni-directionally from left to right: 8...

17日 前

Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

17日 前

Matrix for beginners
Multiply x and y elemwise.

17日 前

Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

17日 前