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

oltre 3 anni 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...

circa 4 anni 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(...

circa 4 anni ago | 2 answers | 0

Solved

Throw common elements of two vector arrays

Throw common elements as output of two given input vector arrays

circa 4 anni ago

Solved

Find 1's Complement

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

circa 4 anni ago

Solved

Step up

For given input array, output a array with all elements step up by two

circa 4 anni ago

Solved

MATLAB Basic: rounding IV

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

circa 4 anni ago

Solved

MATLAB Basic: rounding III

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

circa 4 anni ago

Solved

MATLAB Basic: rounding II

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

circa 4 anni ago

Solved

MATLAB Basic: rounding

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

circa 4 anni ago

Solved

prime to each other

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

circa 4 anni 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...

circa 4 anni 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. ...

circa 4 anni 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 ...

circa 4 anni 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...

circa 4 anni ago

Solved

Declaring a string

* Assign streetAddress with the string 1313 Mockingbird Lane.

circa 4 anni 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 ...

circa 4 anni 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...

circa 4 anni 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...

circa 4 anni 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...

circa 4 anni ago

Solved

Factorial !

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

circa 4 anni 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 ...

circa 4 anni 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 ...

circa 4 anni 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...

circa 4 anni ago

Solved

Transpose

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

circa 4 anni 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...

circa 4 anni ago