216 total contributions since 2015

Interested in insurance and football betting

Question

Merging CSV files with similar data structure into table

Merging CSV files into table I am trying to find a way to read each csv file with read table and merge into a big table witho...

4 years ago | 1 answer | 0

Answered

Calmonths issues with February

I found the answer: The term unit of a month is a bit ambigiuous. But going to the end of a month is not controversial... Th...

Calmonths issues with February

I found the answer: The term unit of a month is a bit ambigiuous. But going to the end of a month is not controversial... Th...

4 years ago | 0

Question

Calmonths issues with February

What is going wrong here? Shifting to the month end works fine for this example: t0 = datetime(2016,1,1);t1 = dateshift(...

4 years ago | 2 answers | 0

Solved

Throw common elements of two vector arrays

Throw common elements as output of two given input vector arrays

4 years ago

Solved

Find 1's Complement

Find 1's complement of a binary number For Example: x = 10011010 1's complement of x = 01100101

4 years ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

4 years ago

Solved

MATLAB Basic: rounding III

Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

4 years ago

Solved

MATLAB Basic: rounding II

Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

4 years ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

4 years ago

Solved

prime to each other

Given two integers n1, n2 greater than 1, find out if they are prime to each other.

4 years ago

Solved

multiple of nine?

Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

4 years ago

Solved

Find elements of set A those are not in set B

Given two sets of data A and B. Find elements of A those are not in set B. ...

4 years ago

Solved

Replace secondary diagonal elements of a square array

Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

4 years ago

Solved

Function Iterator

Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

4 years ago

Solved

Make a 1 hot vector

Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

4 years ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

4 years ago

Solved

Duplicates

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

4 years ago

Solved

Matrix of almost all zeros, except for main diagonal

Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

4 years ago

Solved

Factorial !

Calculate the factorial of a non-negative integer without using the built in function *factorial*

4 years ago

Solved

Special matrix

Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

4 years ago

Solved

Change the first and last diagonal element of the identity matrix to zero

Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

4 years ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

4 years ago

Solved

Transpose

Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

4 years ago

Solved

Getting the row and column location from a matrix

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

4 years ago