Faculty member in civil & environmental engineering

Solved

Legend of Zelda - Rupee Count (Compact)

Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

18 hours ago

Solved

Legend of Zelda - Rupee Count

Rupees are the main currency in The Legend of Zelda games. The value of each rupee is determined by its color. Unfortunately, th...

18 hours ago

Solved

Shorten pathname

Given a pathname string, return a condensed version by replacing intermediate folders with '..'. *Example* If fullpat...

18 hours ago

Solved

From a given cell array of strings, extract the non-unique strings.

We are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning t...

19 hours ago

Solved

Calculator spelling - Letters to Numbers

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

2 days ago

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

2 days ago

Solved

Decrypt the cypher using XOR encryption (for beginners)

Inspired by Project Euler n°59 Each character on a computer is assigned a unique code and the preferred standard is ASCII (...

2 days ago

Solved

Calculate the sphericity of a Raschig ring

Sphericity is a measure of the roundness of any particle. It was defined by Wadell in 1935 as the ratio of the 'surface area of ...

3 days ago

Solved

Divisible by n, prime divisors - 11, 13, 17, & 19

Divisibility checks against prime numbers can all be accomplished with the same routine, applied recursively, consisting of add ...

4 days ago

Solved

Evaluate the logarithmic integral

The <https://en.wikipedia.org/wiki/Logarithmic_integral_function logarithmic integral> li(x) plays a role in number theory becau...

5 days ago

Solved

Long-digit Subtraction

Suppose you need to subtract a very large integer from another integer. <http://www.mathworks.com/matlabcentral/cody/problems/56...

6 days ago

Solved

COUNT LETTERS

Count the number of letters in a given string. For Example: STR='The MAtlAb code'; output:T 2 H 1 E 2 M 1 A 2 L 1 B 1 C ...

6 days ago

Solved

Reverse CHECKBOX MATRIX with 69

Create a reverse checkbox matrix with '69'. Where the size is the input and output will be a square checkbox matrix. Exa...

6 days ago

Solved

A kind of decryption

Please convert the vector to letters by referring to the examples below. (eg.1) input vec=[34 1 59] >>> output s='A Z' (eg...

7 days ago

Solved

Clock Hand Angle 1

Given a time in HH:MM:SS, find the smallest angle (in degrees) between the hour and minute hand

8 days ago

Solved

Make a diamond

Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...

8 days ago

Solved

CARDS PROBLEM

Read my mind and tell me the card number that I have now in my hands.

9 days ago

Solved

Pentagonal dodecahedron

<<https://upload.wikimedia.org/wikipedia/commons/7/73/Dodecahedron.gif>> Pentagonal dodecahedron is a dodecahedron that is ...

9 days ago

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

9 days ago

Solved

cofactor matrix

given a matrix, find its cofactor matrix <https://en.wikipedia.org/wiki/Minor_(linear_algebra)#Inverse_of_a_matrix>

9 days ago

Solved

Please check if calorie intake is less than 300 kcal.

I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whe...

10 days ago

Solved

Let's make puddings !

We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now W...

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

10 days ago