Community Profile

# David Verrelli

Last seen: más de 1 año hace Con actividad desde 2015

http://www.research.div1.com.au/
Highest Cody ranking = 42nd (10000 points, in July 2018).

All

Ver insignias

#### Content Feed

Ver por

Resuelto

Wait a second!
Your code needs to take 'exactly' one second to run — accurate to ±0.5 milliseconds. The input will be the number of millis...

más de 1 año hace

Resuelto

N-Dimensional Array Slice
Given an N-dimensional array, _A_, an index, _I_, and a dimension, _d_, return the _I_ th elements of _A_ in the _d_ dimension. ...

alrededor de 2 años hace

Resuelto

Operate on matrices of unequal, yet similar, size
You may want to add a vector to a matrix, implying that the vector is added to each column of the matrix. Or multiply a 3x4x5 ma...

alrededor de 2 años hace

Resuelto

Comparison of floating-point numbers (singles)
Floating-point numbers cannot generally be represented exactly, so it is usually inappropriate to test for 'equality' between tw...

alrededor de 2 años hace

Problema

Guess the number I'm thinking of (Part 2)
Have you tried the original "Guess the number I'm thinking of" (Problem 44630)? This problem is just like that, except that the...

alrededor de 2 años hace | 1 | 4 solvers

Resuelto

What score did they give?

más de 4 años hace

Resuelto

Combine the first and last names
MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

casi 5 años hace

Problema

What score did they give?

alrededor de 5 años hace | 1 | 9 solvers

Resuelto

Create tangent function out of sin and cos

alrededor de 5 años hace

Resuelto

How to Concatenate two strings?
How to Concatenate two strings?

alrededor de 5 años hace

Resuelto

Create a function without inputs that adds one to the output every time it is called. A different possibility of solving this ha...

alrededor de 5 años hace

Resuelto

Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

alrededor de 5 años hace

Resuelto

Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

alrededor de 5 años hace

Resuelto

Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

alrededor de 5 años hace

Resuelto

Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

alrededor de 5 años hace

Resuelto

Analyze observation data
Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

alrededor de 5 años hace

Resuelto

Probabilities - Balls and urns - 02
The urn contains B blue balls and R red balls. Each trial consists of drawing one random ball from the urn and observing its col...

alrededor de 5 años hace

Resuelto

Solve equation numerically
y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

alrededor de 5 años hace

Resuelto

Get Cody's screen size
Return an object that helps this problem's test suite return Cody's screen size.

alrededor de 5 años hace

Resuelto

Create a function that subtracts a from b if a and b are integers and adds them if they are floats.

alrededor de 5 años hace

Resuelto

Circumscribed Pentagon?
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/44368 Problem 44368>, your function will be provided with...

alrededor de 5 años hace

Resuelto

Calculate numerical integration.
x=0:0.01:1 y=@(x)x.^2 Using given two inputs(x and y), conduct numerical integration in x. (hint: trapz)

alrededor de 5 años hace

Resuelto

Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

alrededor de 5 años hace

Resuelto

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

alrededor de 5 años hace

Resuelto

Given square matrix, and solution vector, find the values of the variables Example: xyz = [1 -1 2; 0 2 5; 4 0 -3]; //x-y+2...

alrededor de 5 años hace

Resuelto

Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

alrededor de 5 años hace

Resuelto

Count given word x in text.
Count how many times given word x repeats in text.

alrededor de 5 años hace

Resuelto

Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

alrededor de 5 años hace

Resuelto

Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

alrededor de 5 años hace

Resuelto

Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

alrededor de 5 años hace