답변 있음
using ODE45 with condition
You can use <http://www.mathworks.com/help/matlab/math/ordinary-differential-equations.html#f1-669698 event location> to run |od...

대략 11년 전 | 1

문제를 풀었습니다


Evaluating continued fractions
Given row vector c=[c0 c1 c2 c3 ...] evaluate the continued fraction x=c0+1/(c1+1/(c2+1/(c3+...))) If c is a ...

대략 11년 전

문제를 풀었습니다


Mersenne Primes vs. All Primes
A Mersenne prime (M) is a prime number of the form M = 2^p - 1, where p is another prime number. <https://www.mathworks.com/matl...

대략 11년 전

문제를 풀었습니다


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

대략 11년 전

문제를 풀었습니다


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

대략 11년 전

문제를 풀었습니다


Chess performance
After Problems <http://www.mathworks.com/matlabcentral/cody/problems/3054-chess-elo-rating-system/ 3054> and <http://www.mathwor...

대략 11년 전

문제를 풀었습니다


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match ( <http://en.wikipedia.org/wik...

대략 11년 전

문제를 풀었습니다


Chess ELO rating system
The Elo rating system is a method for calculating the relative chess skill levels of players in competitor-versus-competitor gam...

대략 11년 전

답변 있음
I have a for loop that makes one particle take 1000 random steps. How do i make this happen for 1000 particles?
This is a 2D random walk, and it helps to use variable names that reflect this. It is more efficient to generate a lot of random...

대략 11년 전 | 0

답변 있음
How to generate pn-sequence in matlab?
You might not have to reinvent the wheel. If you have the Communications Toolbox, you could use <http://www.mathworks.com/help/c...

대략 11년 전 | 0

| 수락됨

답변 있음
covariance of 3 D matrix
Probably what you need is in this discussion of <http://www.mathworks.com/help/mbc/mbccommandline/covariance.html covariance>.

대략 11년 전 | 1

| 수락됨

문제를 풀었습니다


Expression or variable?
Test if arguments of the function are all variables (workspace variables names). Return 1 if yes, 0 if no. For example : ...

대략 11년 전

답변 있음
For loop of distance equation returning a confusing output
When something is going wrong, it's a good idea to look at the intermediate results. You could use the <http://www.mathworks.com...

대략 11년 전 | 1

| 수락됨

답변 있음
Attempt to reference field of non-structure array.
Suppose we start with the example from your link: array = [12 1 10 2 7 11 4 14 5 0 9 15 8 13 6 3]; To eliminate the zero...

대략 11년 전 | 0

| 수락됨

답변 있음
Implicit system not working
Guillaume, sorry that it has taken so long for someone to respond. If your goal is to find beta and theta for each value of ...

대략 11년 전 | 0

답변 있음
Indexing error in function code.
You'll get the same error with this code snippet: h = logical([1 0]); B(2*h) or, for that matter, just B(0) T...

대략 11년 전 | 1

답변 있음
Solving 4 equations and 4 unknowns - help please
I think that you are misinterpreting the theta-beta-M equation. It does not involve initial and final conditions because the bou...

대략 11년 전 | 0

답변 있음
Help me solve this non-linear equation.
Before using MATLAB, you should think about the math. Suppose that |y = x(1)*x(2)|. You are trying to solve sin(y) = 0 cos...

대략 11년 전 | 2

| 수락됨

답변 있음
What answers should be "Answer of the week"?
Here is another one from a few years back: <http://www.mathworks.com/matlabcentral/answers/5011#answer_7021 this answer> by <htt...

대략 11년 전 | 0

답변 있음
Plot ellipse from equation (no foci/axes)
One approach is to use ezplot: ezplot('x^2+y^2-4*x-8*y+10-2*log(2)') By default, this plots over the domain -2π < x < 2π...

대략 11년 전 | 1

| 수락됨

질문


What answers should be "Answer of the week"?
In MATLAB Answers, many answers are good enough to satisfy the questioner; but some go further. They may take extra care in expl...

대략 11년 전 | 답변 수: 4 | 2

4

답변

답변 있음
Unfamiliar Vector Index Notation
See <http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html Matrix Indexing in MATLAB>.

대략 11년 전 | 0

| 수락됨

답변 있음
How can I document codes and report in MATLAB?
Big topic. You could start with these two videos: * <http://www.mathworks.com/videos/writing-a-matlab-program-69023.html Writ...

대략 11년 전 | 1

| 수락됨

답변 있음
While loops & multiple variables
Your while condition returns a logical vector, and if any of its components is false the whole thing is false and the loop ends....

대략 11년 전 | 3

답변 있음
How do I get an element from a string?
Here is some code that works: vec = {5,6}; S = ['oNTitsr'; 'reaqBtr'; 'sggtalu'; 'imnvomo'; 'nresg...

대략 11년 전 | 0

| 수락됨

답변 있음
Problem with script in if -else conditions
The problem is that you are testing the entire array at once with your code. If you type D50 > 0.0000625 you get an...

대략 11년 전 | 1

| 수락됨

답변 있음
Return the indices of max value in a possible 4D array
If you don't know in advance the size of the array, you can create a cell array for the indices with as many elements as there a...

대략 11년 전 | 1

| 수락됨

답변 있음
Strange behavior on subplots with surf
It appears that |surf| chooses |OpenGL| for the renderer (see <http://www.mathworks.com/help/matlab/ref/figure-properties.html F...

대략 11년 전 | 1

| 수락됨

문제를 풀었습니다


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

대략 11년 전

답변 있음
Error using solve command, says input and output are inconsistent?
Are you using the Matlab editor? If so, the orange marks indicate problems with syntax that are causing your problems. For examp...

대략 11년 전 | 0

더 보기