A résolu


Find Logic 6

environ 4 ans il y a

A résolu


Find Logic 4

environ 4 ans il y a

A résolu


Energy Conversion 2

environ 4 ans il y a

A résolu


Energy Conversion 1

environ 4 ans il y a

A résolu


Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

environ 4 ans il y a

A résolu


Area Conversion 2

environ 4 ans il y a

A résolu


Area Conversion 1

environ 4 ans il y a

A résolu


Mass Conversion 2

environ 4 ans il y a

A résolu


Mass Conversion 1

environ 4 ans il y a

A résolu


Temperature Conversion 3

environ 4 ans il y a

A résolu


Temperature Conversion 2

environ 4 ans il y a

A résolu


Temperature Conversion 1

environ 4 ans il y a

A résolu


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

environ 4 ans il y a

A résolu


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

environ 4 ans il y a

A résolu


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

environ 4 ans il y a

A résolu


Soccer - TOTO
How many different outcomes are there in a soccer-TOTO with n games? For each game there are three results: win - loss - equa...

environ 4 ans il y a

A résolu


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

environ 4 ans il y a

A résolu


Baseball Pitch Question
One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...

environ 4 ans il y a

A résolu


Number of vertices of a hypercube
Return the number of vertices of a n-dimensional hypercube.

environ 4 ans il y a

A résolu


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

environ 4 ans il y a

A résolu


square of a number
find square of a given number

environ 4 ans il y a

A résolu


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

environ 4 ans il y a

A résolu


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

environ 4 ans il y a

A résolu


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

environ 4 ans il y a

A résolu


Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...

environ 4 ans il y a

A résolu


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

environ 4 ans il y a

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

environ 4 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ 4 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

environ 4 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

environ 4 ans il y a

Charger plus