Assistant Professor, University of the Philippines - Diliman, Department of Chemical Engineering. Research Interests: process data analytics, process systems engineering, machine learning.

Solved

Genome decoding

Inspired by a question on the answer forum: You are given a matrix of 8-bit integers which encodes a genome. Each integer can...

23 minutes ago

Solved

How many complete pizzas

x is a vector with numbers of pizza slices. A corresponding vector n indicates in how many slices the pizza slices of x were cut...

20 hours ago

Solved

I hope to lose weight healthily...

In order to reduce weight healthily, weight will be reduced by 4% every month. Please calculate how many months it will take...

20 hours ago

Solved

Calculating the total earnings of a factory

The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

21 hours ago

Solved

Divide the Least Common Multiple by the Greatest Common Divisor of two numbers

Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

21 hours ago

Solved

Duration of a trip in minutes

Input is a string which includes the duration of a trip. Convert the duration to minutes. For example if the duration of a t...

22 hours ago

Solved

Odd times even numbers in a matrix

First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

1 day ago

Solved

Make visible max values

Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

1 day ago

Solved

generate capital english alphabets

Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

1 day ago

Solved

Cody problems in French : Trouvez la logique Pt.2

Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'utilisation de "^" est de nouveau fortement...

1 day ago

Solved

sparse_matrix

You convert a vector to a sparse matrix. for example *x* =[1 2 3]; output will be *y* = [1 0 0 ...

1 day ago

Solved

How to permute given 3d matrix?

A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

1 day ago

Solved

Find the numeric characters in a string and return their index

Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

1 day ago

Solved

Don't Try, give up and return NaN.

This is another version of <http://www.mathworks.com/matlabcentral/cody/problems/3107-try-and-catch-simple-example problem 3107....

1 day ago

Solved

Just another sum (JAS)

*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

1 day ago

Solved

Modified Upper Matrix Mock

Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

1 day ago

Solved

DC-DC boost converter

Find the output voltage of a DC-DC boost converter when its input voltage is 12V and the duty cycle ratio is 0.6.

1 day ago

Solved

2048 Next Move

Given a board in the game 2048 (see the game here: <http://gabrielecirulli.github.io/2048/ 2048>) and a direction ('up','down','...

1 day ago

Solved

Probability of red tulips (at both ends of a row)

I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...

1 day ago

Solved

For given vectors x,y find coresponding spline coefficients.

For given vectors x,y find coresponding spline coefficients. Example x =[ -3 -2 0 2 3] y =[ 0 0 1 ...

1 day ago

Solved

Polynomial Evaluation

Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

1 day ago

Solved

Radiation Heat Transfer — View Factors (5)

View factors (aka configuration factors) are utilized in some radiation heat transfer models to estimate heat transfer rates bet...

2 days ago

Solved

Radiation Heat Transfer — View Factors (4)

View factors (aka configuration factors) are utilized in some radiation heat transfer models to estimate heat transfer rates bet...

2 days ago