문제를 풀었습니다


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

9년 초과 전

문제를 풀었습니다


Count number of words in string
Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

9년 초과 전

답변 있음
solve an equation by iterration
Put Sigma in the other side of the equation by changing it sign, and then use *fsolve*. <https://it.mathworks.com/help/optim/ug...

9년 초과 전 | 2

문제를 풀었습니다


Consecutive Powers
Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

9년 초과 전

문제를 풀었습니다


Make a diamond
Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...

9년 초과 전

문제를 풀었습니다


Parse string and identify specific string sequence in algebraic equation
Given a string S that defines an algebraic expression such as: S= 'X= A1 + A2*(Y1 + A3*Y3)*exp( A4*Y12 + Y1) ;' return a...

9년 초과 전

문제를 풀었습니다


Create a dictionary
The goal is to write a function that returns a dictionary from a list of words or phrases and their definitions. Here is an exam...

9년 초과 전

문제를 풀었습니다


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

9년 초과 전

문제를 풀었습니다


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

9년 초과 전

문제를 풀었습니다


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

9년 초과 전

답변 있음
Finite difference problem with matlab 2014
Your problem is equaivalent to this (without the variable t, which redundant here as it is used only for indexing purposes). Sin...

9년 초과 전 | 3

| 수락됨

답변 있음
give name to node in dendrogramm
Use the 'Labels' property of the dendogram plot. Keep in mind that dendrogram labels any leaves in the dendrogram plot containin...

9년 초과 전 | 3

| 수락됨

답변 있음
two dimensional for loop - "matrix dimensions must agree"
*Do not use* commas to separate decimals as in N = [1000, 10,000, 100,000]; In matlab commas are only to separate betwe...

9년 초과 전 | 4

| 수락됨

답변 있음
Is there a Row limit when transfering a matlab table to CSV file?
Depending on Office version, there are limitations in the maximum number of rows Excel can load. To really know how many rows th...

9년 초과 전 | 2

답변 있음
Fitting a 3D sine function to topographic data?
A simple idea is to downsample your data (also called decimation). Since your data is very regular, you can remove a lot of samp...

9년 초과 전 | 3

답변 있음
How to find the R peaks in QRS complexes
Here you cannot use built in matlab function findpeaks, because it works only in 1D. To work in 2D use this: <https://it.math...

9년 초과 전 | 3

답변 있음
Min and max in integral
To get max of symbolic variables x,y try this: max(double([x,y]))

9년 초과 전 | 3

답변 있음
How to display specific points and values?
To display also top axis, use box on; I didn't get what is the other problem. Can you explain better?

9년 초과 전 | 3

답변 있음
How can I detect the difference b/w indices of vector and stop it as well?
To get the differences between all consecutive values of x, better use the built-in matlab function diff(), and then thresholdin...

9년 초과 전 | 3

문제를 풀었습니다


Bruh
Return 'bruh'.

9년 초과 전

문제를 풀었습니다


Product of Array
Given an array of numbers. Get the product of the array.

9년 초과 전

문제를 풀었습니다


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

9년 초과 전

문제를 풀었습니다


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

9년 초과 전

문제를 풀었습니다


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

9년 초과 전

문제를 풀었습니다


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

9년 초과 전

문제를 풀었습니다


Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...

9년 초과 전

문제를 풀었습니다


Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

9년 초과 전

문제를 풀었습니다


Simple problem creating a function from an abstract specification.
MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous...

9년 초과 전

더 보기