A résolu


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

presque 10 ans il y a

A résolu


Square root of a number
Write a code that will output the square root of x.

presque 10 ans il y a

A résolu


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

presque 10 ans il y a

A résolu


Vector with a repeated entry
Create a row vector of length n, filled with 5's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

presque 10 ans il y a

A résolu


Log of a number
Write a script that will give the log of x as output.

presque 10 ans il y a

A résolu


Zero Cross
Can you write a function counts the number of times(n) a signal(x) crosses zero or changes sign. Example x=[1 2 -3 -4 5 ...

presque 10 ans il y a

Réponse apportée
The theory of "_mergesimpts" of builtin functions.
It is an undocumented built-in function, which finds unique elements/rows within a specified tolerance. You may find a detailed ...

presque 10 ans il y a | 0

A résolu


Fast 1-D Convolution (full shape)
This is the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolution se...

presque 10 ans il y a

A résolu


Break it up! Break it up!
You have N pennies. Write a Matlab script that will reveal how many different ways you can break up those pennies. For example...

presque 10 ans il y a

A résolu


Find the inverse permutation
Given a permutation vector perm (a vector of n elements containing all the elements from 1 to n in some order), return the permu...

presque 10 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

presque 10 ans il y a

A résolu


Self-similarity 3 - Every other pair of terms
Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

presque 10 ans il y a

A résolu


Self-similarity 2 - Every third term
Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

presque 10 ans il y a

A résolu


Self-similarity 1 - Every other term
Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

presque 10 ans il y a

A résolu


Insert certain elements into a vector.
We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

presque 10 ans il y a

A résolu


Must be in the front row...
You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

presque 10 ans il y a

A résolu


Nth roots of unity
First, find the n nth roots of unity. eg if n = 6, find the n distinct (complex) numbers such that n^6 = 1. <https://en.wiki...

presque 10 ans il y a

A résolu


How Far Can You Throw Something?
As you probably learned in your high school physics class, throwing an object at a 45 degree angle will give you the maximum ran...

presque 10 ans il y a

A résolu


I've got the power! (Inspired by Project Euler problem 29)
Consider all integer combinations of a^b and b^a for the integer values 2 ≤ a ≤ 4 and 2 ≤ b ≤ 5: 2^2=4, 2^3=8, 2^4=16,...

presque 10 ans il y a

A résolu


Counting the Grand Primes
A grand prime pair is a pair of primes, p1 and p2=p1+1000, such that both numbers are prime. Like a twin prime pair, where the d...

presque 10 ans il y a

A résolu


Find the index of nth maximum of a row vector of real numbers
Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

presque 10 ans il y a

A résolu


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

presque 10 ans il y a

A résolu


Perimeter of a square
Find a function for the perimeter of a square where x equals a side length

presque 10 ans il y a

A résolu


Create equation to find Capacitance of capacitor in circuit given voltage of battery (V) and the magnitude of charge stored on each plate (Q).
Create equation to find Capacitance of capacitor in circuit given voltage of battery (V) and the magnitude of charge stored on ...

presque 10 ans il y a

A résolu


Look Up Mapping
Let the input is A = {[] [] [] [1] []}; B = {'A','B','C','D','E'}; Mapped Output = 'D';

presque 10 ans il y a

A résolu


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

presque 10 ans il y a

A résolu


Transpose of matrix
Transpose of matrix as per test cases

presque 10 ans il y a

A résolu


Find longest run
Write a function longest_run that takes as input an array of 0's and 1's and outputs the length and index of the longest consecu...

presque 10 ans il y a

A résolu


speed vs size
The given string describes some MATLAB expressions such as 'pause(1)'. Compute its performance score = code size + run time in m...

environ 10 ans il y a

A résolu


Find the distance between runs
Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...

environ 10 ans il y a

Charger plus