Gelöst


Friday the 13th
According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of ...

10 Monate vor

Gelöst


Day counter function
Write a function called day_counter that returns the number of Mondays that fell on the first day of the month in a given year b...

10 Monate vor

Gelöst


Count the days
Count the occurrence of a particular day (e.g. Monday) for a given duration.

10 Monate vor

Gelöst


How long until the weekend?
Write a function a that takes a date vector as an input and returns the number of hours until the weekend begins. The beginning...

10 Monate vor

Gelöst


Days until next NewYear ball drop
Given a date string in the form 'yyyy-mm-dd' or 'yyyy-mm-dd hh:mm:ss', calculate the number of *days* until the dropping of the ...

10 Monate vor

Gelöst


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

10 Monate vor

Gelöst


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

10 Monate vor

Gelöst


Spherical Volume
Calculate the volume of a sphere.

10 Monate vor

Gelöst


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

10 Monate vor

Gelöst


area of an annulus
Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

10 Monate vor

Gelöst


Calculate the probability that at least two people in a group share the same birthday.
Calculate the probability that at least two people in a group share the same birthday. Given an integer input n, return to 0.015...

10 Monate vor

Gelöst


Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

10 Monate vor

Gelöst


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

10 Monate vor

Gelöst


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

10 Monate vor

Gelöst


row removal
Consider a matrix and remove the first row of the matrix.

10 Monate vor

Gelöst


Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...

10 Monate vor

Gelöst


Remove a specific column with min value
Remove the column that contain the min value in the matrix? If you like the problem, please give it a like:)

10 Monate vor

Gelöst


Remove a specific column with max value
Remove the column that contain the max value in the matrix? If you like the problem, please give it a like:)

10 Monate vor

Gelöst


Remove a specific row with min value
Remove the row that contain the min value in the matrix? If you like the problem, please give it a like:)

10 Monate vor

Gelöst


Remove a specific row with max value
Remove the row that contain the max value in the matrix? If you like the problem, please like it :)

10 Monate vor

Gesendet


boot-TCLUST
Code to reproduce the figures of paper "Choice of trimming proportion and number of clusters in robust clustering based on trimm...

10 Monate vor | 1 Download |

0.0 / 5
Thumbnail

Gelöst


Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

10 Monate vor

Gelöst


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

10 Monate vor

Gelöst


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

10 Monate vor

Gelöst


Make a rainbow matrix (follow-up to checkerboard matrix)
Given an integer n, make an n-by-n matrix as shown below. The a(1,1) should be 0. As we move away from the top-left, the number ...

10 Monate vor

Gelöst


Union Jack Matrix
Create a matrix of odd dimensions that has ones on both diagonals and dividing the matrix into 4 quadrants, resembling a square ...

10 Monate vor

Gelöst


Vandermonde Matrix
Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...

10 Monate vor

Gelöst


Tent matrix
Create an n x n matrix that resembles one kind of tent. The variable n is provided to the function and will be an odd number. As...

10 Monate vor

Gelöst


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

10 Monate vor

Gelöst


Create a square matrix with given conditions
Create a square matrix, M, which should be populated as follows: M = [ n^2 n * (n-1) n * (n-2) ... n * 2 n * ...

10 Monate vor

Mehr laden