문제를 풀었습니다


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

거의 11년 전

문제를 풀었습니다


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

거의 11년 전

문제를 풀었습니다


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

거의 11년 전

문제를 풀었습니다


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

거의 11년 전

문제를 풀었습니다


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

거의 11년 전

문제를 풀었습니다


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

거의 11년 전

문제를 풀었습니다


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

거의 11년 전

문제를 풀었습니다


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

거의 11년 전

문제를 풀었습니다


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

거의 11년 전

문제를 풀었습니다


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

거의 11년 전

문제를 풀었습니다


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

거의 11년 전

문제를 풀었습니다


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

거의 11년 전

답변 있음
online extracting data from DB using MATLAB
Hello Neeloufar, Here is some very specific code that pulls all the data from url: <http://www.genome.jp/dbget-bin/www_bget?-...

거의 11년 전 | 1

문제를 풀었습니다


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

거의 11년 전

답변 있음
Logarithmic scale for colorbar
Hello Tom, My script plots sample data in logscale using "countourf", and both "YTick" and "YTickLabel" are set in "colorbar"...

거의 11년 전 | 7

| 수락됨

답변 있음
plotting simple one variable functions for beginner using fplot
Hello bluseky, Try "ezplot" instead: syms x1 real f=x1^3 ezplot(f,[-1,1]) If you require the use of "fplot", g...

거의 11년 전 | 1

| 수락됨

답변 있음
How do I correlate columns
Hello again, Kris, This function outputs a 925x90 matrix with individually computed linear correlation coefficients for each ...

거의 11년 전 | 1

| 수락됨

문제를 풀었습니다


Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

거의 11년 전

문제를 풀었습니다


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

거의 11년 전

문제를 풀었습니다


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

거의 11년 전

문제를 풀었습니다


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

거의 11년 전

문제를 풀었습니다


Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

거의 11년 전

문제를 풀었습니다


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

거의 11년 전

문제를 풀었습니다


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

거의 11년 전

답변 있음
How to use sum series in Matlab
I'm providing another solution to address the longer summation you have posted in my first answer. Please let me know if this s...

거의 11년 전 | 1

| 수락됨

문제를 풀었습니다


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

거의 11년 전

답변 있음
How to use sum series in Matlab
Hello Atinesh syms i %Creat symbolic variable 'i' symsum(i^2, i, 1, 4) %Use symsum to run your summation operation Be...

거의 11년 전 | 0

답변 있음
How to aggregate one column according to the other column in MATLAB?
%Built the reference MAT file from which your table is pulled product=[114,112,112,113,115,113,111,113]'; customer=[1 2 ...

거의 11년 전 | 0

답변 있음
Multiplying structures together based on field names
Hello Oliz, I've played around with your structures, and I have multiplied _struct1.a_ through _struct2.b_ in the following w...

거의 11년 전 | 0

문제를 풀었습니다


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

거의 11년 전

더 보기