문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

답변 있음
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...

거의 13년 전 | 2

답변 있음
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 ...

거의 13년 전 | 4

| 수락됨

답변 있음
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...

거의 13년 전 | 0

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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.

거의 13년 전

답변 있음
summing up array element
help cumsum >> s = cumsum(p) s = 3 9 11 16

거의 13년 전 | 1

답변 있음
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...

거의 13년 전 | 2

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

답변 있음
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...

거의 13년 전 | 2

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


Get me! v2
Exploiting cody v2

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


Make a Plot with Functions
Make a plot and test

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

답변 있음
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)==...

거의 13년 전 | 1

| 수락됨

답변 있음
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...

거의 13년 전 | 0

| 수락됨

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

더 보기