Community Profile

# Stephen

### USEUCOM

1.267 total contributions since 2019

View all

Contributions in
View by

Solved

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

etwa 13 Stunden ago

Solved

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

etwa 13 Stunden ago

Solved

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

etwa 13 Stunden ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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

14 Tage ago

Solved

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

14 Tage ago

Solved

Find out Harmonic mean.
Find out Harmonic mean.

14 Tage ago

Solved

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 Tage ago

Solved

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

14 Tage ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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

14 Tage ago

Solved

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 Tage ago

Solved

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

14 Tage ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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 Tage ago

Solved

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

17 Tage ago

Solved

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

17 Tage ago

Solved

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 Tage ago

Solved

Divide pi
Divide pi by x!

17 Tage ago

Solved

Multiply pi
Multiply pi with x!

17 Tage ago

Solved

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 Tage ago

Solved

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

17 Tage ago

Solved

Matrix for beginners
Multiply x and y elemwise.

17 Tage ago

Solved

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 Tage ago