A résolu

Find a real root of a quintic function

3 jours il y a

A résolu

Convex Hull Capture
Imagine four points in uv that form a square. uv = [ ... 0,0; 0,2; 2,2; 2,0]; Now we have two more po...

3 jours il y a

A résolu

Fractal: area and perimeter of Koch snowflake
Starting from an equilateral triangle with side 's', what is the area and perimeter of Koch snowflake at n'th recursive iteratio...

3 jours il y a

A résolu

Last Digit of fibonacci number

3 jours il y a

A résolu

Basic Monte Carlo Simulation
Input is a matrix including service time and probability of service time. Another input is a random number. Function should tran...

3 jours il y a

A résolu

Ulam spiral 2: The revenge
Starting from the problem <https://www.mathworks.com/matlabcentral/cody/problems/2644-the-ulam-matrix>, transform the Ulam Matri...

3 jours il y a

A résolu

Identify the sequence
Given a row vector, x, return 1 if it is an arithmetic series, or 2 if it is a geometric series. If it is neither, return 0. ...

3 jours il y a

A résolu

Top of the Hour : Return from your routine within 1 second of the hour
*Top of the Hour* Submit your routine such that it returns to Cody after the hour and within 1 second of the hour. The tes...

3 jours il y a

A résolu

odd number odd sum
How many three digit numbers are there whose sum of the digits is odd?

3 jours il y a

A résolu

sort matrix
Given a matrix, sort it for each column, but cannot change the element of each row. for example input = [1 3; 2 4;1 5;3 6]; ...

3 jours il y a

A résolu

Code Wheel
Create a function that offsets each value in a given string by a given amount. For instance, codewheel('hello',1) s...

3 jours il y a

A résolu

Creation of 2D Sinc Surface
This Challenge is to efficiently create the Sombrero function of various sizes, resolutions, and frequencies. <<https://sites...

3 jours il y a

A résolu

Script file size
Determine the file size of a script, "function.m". This is the base scoring method for Cody and the Matlab Contests. A met...

3 jours il y a

A résolu

Compute the average precipitation for a watershed using the Thiessen polygon method
Several methods are available for estimating the average precipitation for a watershed from a few observations at rain gauges. T...

3 jours il y a

A résolu

Generate Hadamard Matrix
In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are e...

3 jours il y a

A résolu

Jack's hand in "Titanic" ♤
Given a series of cards, return true if it's the famous hand. Note that i pretend that poker cards goes from 1 to 10 so be care...

4 jours il y a

A résolu

Probabilities - Balls and urns - 01
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...

4 jours il y a

A résolu

Unique: Speed Enhancement for uint(8,16,32)
This Speed Performance Challenge is to optimize Unique for processing uint8/uint16/uint32 variables. *Input:* A (column vecto...

4 jours il y a

A résolu

Free Fall analytical solution (Chapra 2012 textbook Example 1.1)
Analytical solution to bungee jumper problem. Given time series as a vector, parameters mass and drag coefficient, and gravit...

4 jours il y a

A résolu

Fixed-Point Iteration
Perform fixed-point iteration to estimate the root of a nonlinear equation.

4 jours il y a

A résolu

Median filter over three values
Implement 1-D median filter over input vector x as described: Moving window size is 3 Output is middle/central value in moving...

4 jours il y a

A résolu

Is this triangle right-angled (mixed sides)?
Implement function returning if triangle is right angled or not? Input argument is vector row with not ordered triangle sides. ...

5 jours il y a

A résolu

Bisection method of finding a root.
Test the bisection algorithm described in Chapter 5 of Steven C. Chapra's textbook, *Applied Numerical Methods with MATLAB for E...

7 jours il y a

A résolu

False position (linear interpolation) method of finding a root.
Test the false position algorithm described in Chapter 5 of Steven C. Chapra's textbook, Applied Numerical Methods with MATLAB f...

7 jours il y a

A résolu

Compute frequency factors for the normal distribution
In frequency analysis in hydrology, the streamflow corresponding to a specified exceedance probability (or return period ) can...

8 jours il y a

A résolu

Number Puzzles - 012

8 jours il y a

A résolu

Number Puzzles - 014

8 jours il y a

A résolu

Number Puzzle - 023

8 jours il y a

A résolu

Number Puzzle - 025

8 jours il y a

A résolu

Number Puzzle - 026

8 jours il y a