Gelöst


Eliminate Outliers Using Interquartile Range
Given a vector with your "data" find the outliers and remove them. To determine whether data contains an outlier: # Identi...

mehr als 3 Jahre vor

Gelöst


Sum of infinite series.

mehr als 3 Jahre vor

Problem


Determine the minimum number of swaps to sort a vector
Cody Problem 1401 asks us to sort a vector with the bubble sort algorithm and count the number of swaps needed. For example, to ...

mehr als 3 Jahre vor | 2 | 6 Lösungsvorschläge

Gelöst


swap sign sum & multiply castles
* It is an easy problem, if you know the answer. * Given a square matrix of NxN ordinary numbers. * Initially place N identi...

mehr als 3 Jahre vor

Gelöst


007: Chinese Barrack Invasion
*MISSION:* Successfully invade a military barrack located in China. *WARNING:* There is a row of _n_ security switches protec...

mehr als 3 Jahre vor

Gelöst


Check if a directory is on the current MATLAB search path
Given a directory name as a string, return true if the directory is on the current MATLAB search path, and false otherwise.

mehr als 3 Jahre vor

Gelöst


Six Steps to PCA - Step 1: Centre and Standardize
*Introduction* Principal Component Analysis (PCA) is a classic among the many methods of multivariate data analysis. Invented...

mehr als 3 Jahre vor

Gelöst


Calculate BMI
Given weight in kgs and height in metres, calculate body mass index

mehr als 3 Jahre vor

Problem


Compute flow in a partially full pipe
Problem statement When does the maximum flow occur in a pipe? Intuition might suggest that it occurs when the pipe is flowing f...

mehr als 3 Jahre vor | 1 | 9 Lösungsvorschläge

Gelöst


raise x to the nth power
use basic math operators and a variable to solve the problem for a given variable n. (make sure "n" is the variable you use)

mehr als 3 Jahre vor

Gelöst


multiply by 5
multiply x by 5

mehr als 3 Jahre vor

Gelöst


multiply by 12
multiply x by 12

mehr als 3 Jahre vor

Gelöst


Find gradient of a numeric data which has same size as the existing vector.
**** Refer matlab documentation about finding gradient **** Convert the entire gradient vector to least integer form. (Probably...

mehr als 3 Jahre vor

Problem


Route a hydrograph through a river section with the Muskingum method
Problem statement Write a function that routes a hydrograph through a river section using the Muskingum method. The input to t...

mehr als 3 Jahre vor | 0 | 4 Lösungsvorschläge

Problem


Identify de Polignac numbers
The numbers 125 and 329 can be written as the sum of a prime and a power of 2. For example, , and . The numbers 127 and 331, whi...

mehr als 3 Jahre vor | 2 | 24 Lösungsvorschläge

Problem


Solve an ODE: draining tank
Write a function to compute the time to drain a cylindrical tank of diameter from an initial level to a level . The outflow oc...

mehr als 3 Jahre vor | 3 | 12 Lösungsvorschläge

Gelöst


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

mehr als 3 Jahre vor

Problem


List numbers such that every sum of consecutive positive integers ending in those numbers is composite
The sequence in question in this problem involves numbers such that all sums of consecutive positive integers ending with are ...

mehr als 3 Jahre vor | 1 | 9 Lösungsvorschläge

Problem


List the two-bit primes
Each year at Christmas, my father-in-law and his partner send me the Puzzle Mania section from the New York Times. This year’s e...

mehr als 3 Jahre vor | 1 | 10 Lösungsvorschläge

Gelöst


Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

mehr als 3 Jahre vor

Gelöst


Sub-sequence - 02
Given two sequences, find the length of the longest common subsequence. a=[1,1,1,1,1,2,3,1,4] b=[2,3,0,0,9,5,4,1] longe...

mehr als 3 Jahre vor

Gelöst


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

mehr als 3 Jahre vor

Gelöst


Find the remainder - 01
Given an array of integers, find the remainder when the product of all the elements is divided by N

mehr als 3 Jahre vor

Gelöst


Sub-Diagonal Sum
Given a (m x n) matrix and a value r {1,-1}, change every element to the sum of the diagonal led by the element. r=1 > regular ...

mehr als 3 Jahre vor

Problem


Compute infiltration and runoff under constant precipitation with the Green-Ampt method
Problem statement Write a function that computes infiltration, depression storage, and runoff using the Green-Ampt method. It s...

mehr als 3 Jahre vor | 2 | 4 Lösungsvorschläge

Gelöst


Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...

mehr als 3 Jahre vor

Gelöst


Zero finder
Write a function named 'zero_finder' that takes a matrix as input and returns the row index of the last zero for each for each c...

mehr als 3 Jahre vor

Mehr laden