Risolto

Cricket - Career Batting Statistics

Given a vector s of strings representing a batter's individual innings scores, return their career statistics as a 4-element (nu...

19 giorni fa

Risolto

Cricket - Sort Batters by Distance Run

Given a string vector of batters' names, a vector of the total number of runs they scored, a vector of the number of 4s they sco...

19 giorni fa

Risolto

Cricket - How Much More to Beat Bradman?

Sir Don Bradman famously needed only 4 runs in his final innings to retire with an average of 100. Out for a duck, he ended inst...

19 giorni fa

Risposto

Why does matlab plot the unit step like a straight line?

Because that's what the step response of the transfer function you mentioned looks like. You might be looking for heaviside sy...

Why does matlab plot the unit step like a straight line?

Because that's what the step response of the transfer function you mentioned looks like. You might be looking for heaviside sy...

21 giorni fa | 1

Risolto

IQpuzzler Preparation #2: Detect isolated zeros in a 2D matrix

Return true if any isolated single zeros are present in the input M-by-N matrix (zeros with all adjacent elements being non-zero...

21 giorni fa

Risolto

Multiply each matrix element by its row index and add its column index.

Return a matrix the same size as the input, multiply each element by its row index and add its column index. Example: x = [ 1 ...

23 giorni fa

Risolto

Faint Receipt

Suppose you have a receipt with some numbers that have been smudged or didn't print. In particular, the total amount is missing ...

25 giorni fa

Risolto

Cluster Partition

Given an array (row or column) of numbers, divide the array into consecutive positive/negative numbers. 0 is to be treated inde...

25 giorni fa

Problema

Cluster Partition

Given an array (row or column) of numbers, divide the array into consecutive positive/negative numbers. 0 is to be treated inde...

26 giorni fa | 0 | 4 risolutori

Risposto

Referring to an element within a cell array element

%pre-allocation x=cell(1,5); x{1}=[1;2;3]; for i=1:4 x{i+1}=x{i}+5; end value=x{3}(2)

Referring to an element within a cell array element

%pre-allocation x=cell(1,5); x{1}=[1;2;3]; for i=1:4 x{i+1}=x{i}+5; end value=x{3}(2)

26 giorni fa | 2

| accettato

Risposto

how to split table with different time values

Finding the indices where the minute starts/changes/ends - a = readtable('tb.csv'); [~,~,~,h,m,~]=datevec(a.time); y=unique([...

how to split table with different time values

Finding the indices where the minute starts/changes/ends - a = readtable('tb.csv'); [~,~,~,h,m,~]=datevec(a.time); y=unique([...

26 giorni fa | 1

| accettato

Risposto

Finding the averages for a unique text value

Just a FYI - MATLAB recommendation is not to use xlsread. y=readtable("data.xlsx", "VariableNamingRule","preserve") [a,~,c]=un...

Finding the averages for a unique text value

Just a FYI - MATLAB recommendation is not to use xlsread. y=readtable("data.xlsx", "VariableNamingRule","preserve") [a,~,c]=un...

26 giorni fa | 2

Risolto

Bridge and Torch Problem - Minimum time

<https://en.wikipedia.org/wiki/Bridge_and_torch_problem Details of the problem ...> Input is crossing time list. (for exampl...

29 giorni fa

Risolto

Get ranking of a combination

I have the numbers pulled without replacement from the set [1 2 3 4 5 6 7 8 9 10 11 12 13]; They are then ordered from least to ...

29 giorni fa

Risolto

fly fly away

A fly moves following a predefined sequence of discrete jumps (defined by the vectors _dx_ and _dy_) repeating the same sequence...

circa un mese fa

Risolto

Aufbau principle

Given the order e=[1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p], find a vector x with these condi...

circa un mese fa

Risolto

Canadian Conundrum

After succesfully completing the French Conundrum, you have decided to take a vacation. Your trip is amongst the mighty mountai...

circa un mese fa

Problema

Canadian Conundrum

After succesfully completing the French Conundrum, you have decided to take a vacation. Your trip is amongst the mighty mountai...

circa un mese fa | 0 | 3 risolutori

Risolto

Guess the Coefficients!

Given a polynomial _p_ known to have positive integer coefficients, deduce the values of the coefficients. For example: ...

circa un mese fa

Risolto

Efficiency of a single phase Transformer

Calculate the efficiency of a single phase transformer whose KVA rating is A KVA, loading factor x,power factor p,full load copp...

circa un mese fa

Risolto

GJam 2017 Kickstart: Leader (Large)

This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader>. This ...

circa un mese fa

Risolto

French Conundrum

The French army is trapped, sorrounded in backwards direction (South and West directions) by enemy traps and ambushes. You are n...

circa un mese fa

Problema

French Conundrum

The French army is trapped, sorrounded in backwards direction (South and West directions) by enemy traps and ambushes. You are n...

circa un mese fa | 1 | 5 risolutori

Risolto

Kaggle: Reverse Game of Life - Periods of Oscillators

<http://www.kaggle.com/c/conway-s-reverse-game-of-life Kaggle's Conway's Reverse Game of Life> contest inspires this Period of L...

circa un mese fa

Risolto

Odd row

Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

circa un mese fa

Risolto

Polygon Interior Angle Sum

Given the number of sides of a regular polygon, find the sum of interior angles. Return 0 for input for which regular polygon a...

circa un mese fa

Risolto

Possible Rugby Scores

Given a natural number s (> 4), representing a rugby team's score, return an n-by-3 matrix representing all n possible combinati...

circa un mese fa

Risolto

Create block matrix of integers (j+k-1) - Part II

Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

circa un mese fa

Risolto

Dartboard Average II

A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

circa un mese fa

Risolto

Create block matrix of integers (j+k-1) - Part I

Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

circa un mese fa