Community Profile

# Ben Cappello

535 total contributions since 2017

View details...

Contributions in
View by

Solved

Square a Number
Given an input x, return y, which is equal to the square of x.

10 mesi ago

Solved

Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

oltre un anno ago

Solved

UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

oltre un anno ago

Solved

UICBioE240 2.8
Convert x number of hours into seconds.

oltre un anno 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. ...

oltre un anno ago

Solved

UICBioE240 problem 1.9
Swap the first and last columns of a matrix. So if A = [12 4 7; 5 1 4]; B = [7 4 12; 4 1 5]; ...

oltre un anno 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 ...

oltre un anno ago

Solved

UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

oltre un anno ago

Solved

UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

oltre un anno ago

Solved

UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

oltre un anno ago

Solved

UICBioE240 problem 1.2
Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

oltre un anno ago

Solved

UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

oltre un anno ago

Solved

UICBioE240 problem 1.13
Compute the following - y = x^5/(x^-1) and y = (1-(1/x^5))^-1. Have the final answer of y to equal a 1 by 2 vector.

oltre un anno ago

Solved

UICBioE240 2.2
Make a 3x4 matrix that contains all ones.

oltre un anno ago

Solved

sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

oltre un anno ago

Solved

Area of square
Find the area of a square whose diagonal length is given as x.

oltre un anno ago

Solved

Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

oltre un anno ago

Solved

Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

oltre un anno ago

Solved

oltre un anno ago

Solved

Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

oltre un anno ago

Solved

Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

oltre un anno ago

Solved

Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

oltre un anno ago

Solved

Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

oltre un anno ago

Solved

Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

oltre un anno ago

Problem

Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

oltre un anno ago | 0

Solved

Find sum of negative elements in row.
Find sum of negative elements in row. Example x=[1 -5 3 4 -6 6 7 8 9 10] result = -11

oltre un anno ago

Solved

Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

oltre un anno ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

oltre un anno ago

Solved

Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

oltre un anno ago

Solved

Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

oltre un anno ago