Content Feed
提问
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...
7 years 前 | 1 个回答 | 0
1
个回答已回答
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...
8 years 前 | 0
提问
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(...
8 years 前 | 2 个回答 | 0
2
个回答已解决
Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays
8 years 前
已解决
Find 1's Complement
Find 1's complement of a binary number For Example: x = 10011010 1's complement of x = 01100101
8 years 前
已解决
MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9
8 years 前
已解决
MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8
8 years 前
已解决
MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9
8 years 前
已解决
MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8
8 years 前
已解决
prime to each other
Given two integers n1, n2 greater than 1, find out if they are prime to each other.
8 years 前
已解决
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...
8 years 前
已解决
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. ...
8 years 前
已解决
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 ...
8 years 前
已解决
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...
8 years 前
已解决
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 ...
8 years 前
已解决
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...
8 years 前
已解决
Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...
8 years 前
已解决
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...
8 years 前
已解决
Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*
8 years 前
已解决
Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...
8 years 前
已解决
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 ...
8 years 前
已解决
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...
8 years 前
已解决
Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.
8 years 前
已解决
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...
8 years 前