Assistant Professor at the University of the Philippines - Diliman, Department of Chemical Engineering; Ph.D. in Energy and Power (2020) from Cranfield University, U.K.; Research Interests: process data analytics, process systems engineering, applications of machine learning to chemical and process engineering.

Solved

Calculator spelling - Numbers to Letters

Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

circa un mese ago

Solved

Mo money, mo math #2! (adapted from Prob 9 Cody team)

You have a matrix for which each row is a person and the columns represent the number of quarters, dimes, nickels and pennies th...

circa un mese ago

Solved

Approximate functions 1

Compute the following sum for any given x and positive integer n. <<https://i.imgur.com/eUwXdSE.gif>> <> Here m! denote...

circa un mese ago

Solved

Prime number check

One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

circa un mese ago

Solved

Function 1

Compute the value of <<https://i.imgur.com/AxKWLmE.gif>> for any given positive x.

circa un mese ago

Solved

Sum of terms in a series 1

Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...

circa un mese ago

Solved

Mo money, mo math! (adapted from Prob 9 Cody team)

You have a vector where the elements represent the number of $20 bills, $10 bills, $5 bills, $1 bills, quarters, dimes, nickels,...

circa un mese 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 ...

circa un mese ago

Solved

Beauty of Parentheses

Given a string consisting of closed parentheses, form a string array in the following way so that the orders of these parenthese...

circa un mese ago

Solved

Mongean Shuffle

A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

circa un mese ago

Solved

Look Up Mapping

Let the input is A = {[] [] [] [1] []}; B = {'A','B','C','D','E'}; Mapped Output = 'D';

circa un mese ago

Solved

Assignment Problem

Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

circa un mese ago

Solved

generate number in particular way

A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

circa un mese ago

Solved

Find last non-zero in a given dimension

You are given a logical matrix *BW* _of any dimension_, and a dimension *dim*. You need to find the locations of the last non-ze...

circa un mese ago

Solved

Check if a rotated array was originally sorted

Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

circa un mese ago

Solved

Weave two matrices together to form one matrix

Take the first column from matrix a, then insert the first column from matrix b, and so on. For example: a = [1 2 3 4]; b ...

circa un mese ago

Solved

S-T-R-E-T-C-H I-T O-U-T

You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

circa un mese ago

Solved

Sorting integers by their digits (Level 4)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42815-sorting-integers-by-their-digits-level...

circa un mese ago

Solved

Sorting integers by their digits (Level 3)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42811-sorting-integers-by-their-digits-level...

circa un mese ago

Solved

Sorting integers by their digits (Level 2)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42809-sorting-integers-by-their-digits Probl...

circa un mese ago

Solved

Sorting integers by their digits (Level 1)

Given a vector, v, of positive integers, return a vector, w, by sorting v in ascending order, such that primary sorting is done ...

circa un mese ago

Solved

Maintain shape of logical-index mask

When using logical indexing into an array, MATLAB returns a vector output. For example, if A = magic(3); mask = logi...

circa un mese ago

Solved

Aufbau principle

Given the order e=[1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p], find a vector x with these condi...

circa un mese ago

Solved

Given a number N, find the smallest prime P>N

Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

circa un mese ago

Solved

The End of the World

given a date -- represent it in the Maya long count system. <https://en.wikipedia.org/wiki/Maya_calendar> <https://maya.nm...

circa un mese ago

Solved

Find the day for a date

Today's day and date will be given to you. By utilising that you need to find the day of the old date. (Date will be in DD/MM/YY...

circa un mese ago

Solved

Friday the 13th

According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of ...

circa un mese ago

Solved

Count the days

Count the occurrence of a particular day (e.g. Monday) in a given year.

circa un mese ago

Solved

Days until next NewYear ball drop

Given a date string in the form 'yyyy-mm-dd' or 'yyyy-mm-dd hh:mm:ss', calculate the number of *days* until the dropping of the ...

circa un mese ago