Solved


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

7 years ago

Solved


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

7 years ago

Solved


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

7 years ago

Solved


Hamming Weight - Fast
The Hamming Weight, <http://en.wikipedia.org/wiki/Hamming_weight wiki Hamming Weight>, in its most simple form is the number of ...

7 years ago

Solved


Rumis Scorer 4
This problem is very similar to <https://www.mathworks.com/matlabcentral/cody/problems/3101-rumis-scorer-3 Rumis Scorer 3>. The ...

7 years ago

Solved


Graph Algorithms 3: Number of Connected Components
Given an adjacency matrix of a simple undirected graph, find the number of connected components.

7 years ago

Solved


Solve the picross! (Easy)
Solve the picross! <http://en.wikipedia.org/wiki/Nonogram> The arguments (horz and vert) are cells containing the clues, e...

7 years ago

Solved


Ratio between sum of primer numbers and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

7 years ago

Solved


Sum of a geometric series
Give the sum of the first 'n' terms of a geometric series, given 'a' as the first term and 'r' as the ratio.

7 years ago

Solved


Get the value 100
Knowing that 123-45-67+89=100, write a function that gives this result for any order of the digits in the input. Otherwise, the ...

7 years ago

Solved


Skyscrapers - Puzzle
The Skyscraper puzzle challenge comes from <http://logicmastersindia.com/home/ Logic Masters India> and <http://www.conceptispuz...

7 years ago

Solved


Check if is a square
Given four coordinates, write a function to check if they form a square on the XY plane.

7 years ago

Solved


Arrange the names in alphabetical order (1)
Arrange the list of names in alphabetical order. The _original_ 'alphabetical order', that is: from α and β all the way throug...

7 years ago

Solved


Arrange the names in alphabetical order (2)
Arrange the list of names in alphabetical order, following the German standard <https://de.wikipedia.org/wiki/Alphabetische_Sort...

7 years ago

Solved


Add all the numbers between two limits (inclusive)
In this problem you must add up "all of the numbers" between two specified limits, |a| and |b|, in which |a| ≤ |b|. However, th...

7 years ago

Solved


Make a KITT-scanner on the command line
Did you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the outp...

7 years ago

Solved


Multivariate polynomials - sort monomials
In <https://www.mathworks.com/matlabcentral/cody/problems/44260-multidimensional-polynomials-convert-monomial-form-to-array Prob...

7 years ago

Solved


Mimic foldl in functional programming
Mimic the higher-order function |foldl| ( <http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29 Wikipedia:Fold (higher-...

7 years ago

Solved


Response of First Order Control Systems
In practice, the input signal to an automatic control system is not known ahead of time but usually random in nature. Thus, in t...

7 years ago

Solved


Anyone for tennis? Your chances of winning a tie-break game
Imagine you are playing tennis and the score has reached 'six games all' in a Tie-break Set, so therefore the next game shall be...

7 years ago

Solved


You are constantly moving at a speed v faster than your twin brother. How long does it take before you become 1s younger than him according to the theory of relativity?
You are moving at a speed of v_in (km/h) relative to your twin brother of the exact (even in seconds) same age. Define: gam ...

7 years ago

Solved


Cosine frequency doubler
Given an input vector containing a cosine wave of unknown frequency, produce an output vector of the same length containing a co...

7 years ago

Solved


feeling VERY lucky?
Just like Matthew's problem <http://www.mathworks.com/matlabcentral/cody/problems/2793 2793> and Edward's problem <http://www.ma...

7 years ago

Solved


Stress-Strain Properties - 8
Up to this point, you've calculated some material properties based on tensile stress-strain data. For this problem, you are task...

7 years ago

Solved


Temperature Conversion Utility (Strings)
This is a follow-on problem to <http://www.mathworks.com/matlabcentral/cody/problems/2413-temperature-conversion-utility Problem...

7 years ago

Solved


Laguerre Polynomial
Create a square lower diagonal matrix containing the first n Laguerre Polynomial coefficients. For n=6, the Laguerre Matrix is: ...

7 years ago

Solved


Range Testing
Range Testing. Write a function that sets y = the range of input array x

7 years ago

Solved


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...

7 years ago

Solved


Yet Another Path Finder
Assume there is a rectangular grid of points. These points are indicated by linear indices in a MATLAB-fashion. Some of the grid...

7 years ago

Solved


Find left eigenvector of row stochastic matrix
Find the left eigenvector of the given stochastic matrix P that has eigenvalue 1. Normalize the vector so the sum of the entri...

7 years ago

Load more