Solved

Use a timetable to analyze a train timetable (Part 2)

Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Yo...

4 years ago

Solved

Use a timetable to analyze a train timetable (Part 4)

You are analyzing a train timetable (you have some time to kill since you just missed your train!) What is the average daily tri...

4 years ago

Solved

Use a timetable to analyze a train timetable (Part 5)

You are analyzing a train timetable (you have some time to kill since you just missed your train!) How many trains depart each d...

4 years ago

Solved

Use a timetable to analyze a train timetable (Part 3)

Oh no, you missed your train to Boston (again?)! How many times can you miss that train today? (In other words, how many Boston ...

4 years ago

Solved

Use a timetable to analyze a train timetable (Part 1)

Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Th...

4 years ago

Solved

Combine the first and last names

MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

4 years ago

Solved

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

4 years ago

Solved

String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

4 years ago

Solved

Weighted Convolution

Given two input vectors x = [x_1, x_2, ..., x_K] and y = [y_1, y_2, ..., y_K] of equal length, compute the weighted convolution ...

4 years ago

Solved

Fast 1-D Convolution (full shape)

This is the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolution se...

4 years ago

Solved

The Top 5 Primes

This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

4 years ago

Solved

Is there a GPU Device?

Return true if there is a supported GPU device available on the Cody computer.

4 years 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]; ...

4 years ago

Solved

Low level NaN

* I have a dataset. Columns represents different variables. * A variable may start with NaN or any double type number. * If i...

4 years ago

Solved

replace nan values iteratively.

replace nan values with the average of two neighbour non-nan value iteratively as follow; x = [2; 4; 6; nan; nan; nan; 10]; ...

4 years ago

Solved

Basic Monte Carlo Simulation

Input is a matrix including service time and probability of service time. Another input is a random number. Function should tran...

4 years ago

Solved

Net Present Value of a Stream of Cash Flows

Calculate <https://en.wikipedia.org/wiki/Present_value the net present value of a future cash flow> vector given; * future ca...

4 years ago

Solved

Delete the rows in the middle

We will delete the rows in the middle and keep the first and the last rows. For example if input is [1 2 1 7 1 8 ...

4 years ago

Solved

Mean = Standard Deviation

Create a series with following properties; # All of the members should be positive integer # Mean of the series should be in...

4 years ago

Solved

Integer to boolean

Write a general function that will create the following conversation; Input is a column vector with integers Output is a b...

4 years ago

Solved

Good Morning :)

Just submit your solution between 05:00:00 and 10:00:00 (AM = Ante Meridiem = Before Noon). _Note : Consider Cody Server Time...

4 years ago

Solved

Decrypt a secret message!

The crypto system in question is based on phone keyboard. We need two numbers in order to decrypt a word. First number represent...

4 years ago

Solved

Homemade: Control Charts

This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...

4 years ago

Solved

Lunar Arithmetic (Multiplication)

<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit when adding and take ...

4 years ago

Solved

Go back n times

You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following; [ 1 NaN NaN NaN ...

4 years ago

Solved

Repeat string n times

* You will be provided a string (s = 'string1_') * a starting point (num1 = 6) (always bigger than or equal to zero) * and n (...

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

4 years ago

Solved

combine cells

A cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the conte...

4 years ago

Solved

Lunar Arithmetic (Addition)

<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit. Example 1: ...

4 years ago

Solved

Repeat string n times - 3

function myOutput = rep_str_3(string1, string2, num1, num2, n) function desiredOutput = rep_str_3('string1', 'STRING2', 0...

4 years ago