A résolu


Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

plus de 12 ans il y a

A résolu


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

plus de 12 ans il y a

A résolu


Permute diagonal and antidiagonal
Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...

plus de 12 ans il y a

Réponse apportée
Help finding the sum of neighboring elements in a matrix?
A 2D convolution should work for your purposes: help conv2 To sum elements, just make your filter a matrix of ones. You...

plus de 12 ans il y a | 2

Réponse apportée
nested if else statements
x = 5.5 if x > 6 disp('x is greater than 6') elseif x >= 3 && x <= 6 if mod(x,1) ~= 0 ...

plus de 12 ans il y a | 4

| A accepté

Réponse apportée
GigE Camera Error: Unable to set PacketSize
Have you tried setting the Packet Size property for your camera? Outside of matlab, you should make sure Jumbo Frames are enable...

plus de 12 ans il y a | 0

A résolu


drowsy?
This dog() may be drowsy or function immediately when you call, return 1 or 0 accordingly within 2/10 second.

plus de 12 ans il y a

A résolu


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal.

plus de 12 ans il y a

Réponse apportée
summing up array element
help cumsum >> s = cumsum(p) s = 3 9 11 16

plus de 12 ans il y a | 1

Réponse apportée
How to find specifying pattern in the string
It sounds like *regexp* would do what you're wanting. idx = regexp(s,'V[bx]x_') If idx returns anything other than empty...

plus de 12 ans il y a | 2

A résolu


Count from 0 to N^M in base N.
Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

plus de 12 ans il y a

A résolu


Convert from Base 10 to base 5
Convert the input number from base 10 into base 5: for example: if a(in base 10)= 5 then a(in base 5)= 10

plus de 12 ans il y a

A résolu


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

plus de 12 ans il y a

Réponse apportée
ln not recognised as a command
help log If you read the help file for *log*, you'll see that it _is_ the natural logarithm function. *ln* is not a built-i...

plus de 12 ans il y a | 2

A résolu


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

plus de 12 ans il y a

A résolu


newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.

plus de 12 ans il y a

A résolu


Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

plus de 12 ans il y a

A résolu


Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

plus de 12 ans il y a

A résolu


Fix y_correct : Hack
The Test Suite has an error. Fix the y_correct value. (See the tags for hints)

plus de 12 ans il y a

A résolu


Get me! v2
Exploiting cody v2

plus de 12 ans il y a

A résolu


Moving average (variable kernel length)
Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

plus de 12 ans il y a

A résolu


Snakes on a plane
Given the dimensions of a 2-d plane, create a matrix where a "snake" of ones occupies the plane from top left to bottom right. ...

plus de 12 ans il y a

A résolu


Make a Plot with Functions
Make a plot and test

plus de 12 ans il y a

A résolu


Proper Factors
Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...

plus de 12 ans il y a

A résolu


GJam: 2013 Rd1a Bullseye Painting
<http://code.google.com/codejam/contests.html Google Code Jam> 2013 Round 1a Bullseye challenge is to determine how many full ri...

plus de 12 ans il y a

Réponse apportée
Determine if a value is an Empty Matrix: 0 x 1 and replace with NaN
help isempty Your code would look something like this: if l == 1 fint = intersect(find(b(:,1)==k),find(b(:,2)==...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
GUI table, add/remove row buttons
Here's a snippet of code I've used in the past for adding and subtracting rows. I modified it for use with a pushbutton. This as...

plus de 12 ans il y a | 0

| A accepté

A résolu


Numeric array to cell array of strings (easy)
Given a numeric array (A) and a 1xk cell array of strings (C), return a cell array (B) that is the same size as A and in which e...

plus de 12 ans il y a

A résolu


hackathon impossible
You might have found a solution to our <http://www.mathworks.com/matlabcentral/cody/problems/205-hackathon-the-beginnings previo...

plus de 12 ans il y a

A résolu


wait for me
wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function mu...

plus de 12 ans il y a

Charger plus