已回答
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...

9 years 前 | 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...

9 years 前 | 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π...

9 years 前 | 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...

9 years 前 | 4 个回答 | 2

4

个回答

已回答
Unfamiliar Vector Index Notation
See <http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html Matrix Indexing in MATLAB>.

9 years 前 | 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...

9 years 前 | 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....

10 years 前 | 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...

10 years 前 | 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...

10 years 前 | 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...

10 years 前 | 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...

10 years 前 | 1

| 已接受

已回答
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...

10 years 前 | 0

已回答
Resolving the "Homeworks"... is it correct?
Instead of saying yes or no, I suggest you create some tests to see if it does what you want. Some examples: A = eye(2); ...

10 years 前 | 0

已回答
How can I do Conformal mapping
See <http://www.mathworks.com/help/images/examples/exploring-a-conformal-mapping.html Exploring a Conformal Mapping>.

10 years 前 | 0

已回答
Can MATLAB Taylor series functions haldle multi variable problems?
For multi-variable problems you need <http://www.mathworks.com/help/symbolic/mupad_ref/mtaylor.html mtaylor>.

10 years 前 | 0

| 已接受

已回答
Uploading documentation to File Exchange?
Many File Exchange submissions are actually folders with multiple files. As far as I can tell, File Exchange is simply classifyi...

10 years 前 | 1

| 已接受

已回答
How to create symbol function matrix in matlab?
To get an |n x n| matrix, use A = sym('A',n);

10 years 前 | 0

已回答
How to extract results from ans of solve command?
First, it's a good idea to give a meaningful name to the output of |solve|: sols = solve (bc1, bc2, An1, Bn1); Now you c...

10 years 前 | 0

提问


Why doesn't Cody accept a class definition?
I created a solution for <http://www.mathworks.com/matlabcentral/cody/problems/1745-get-me Cody Problem 1745 (Get me!)> that is ...

10 years 前 | 1 个回答 | 0

1

个回答

已回答
Wrong answer using " fft (ifft ( vector )) "
The FFT algorithm is a numeric algorithm, with the inevitable round-off errors (see <http://www.mathworks.com/help/matlab/matlab...

10 years 前 | 1

已回答
Running multiple for loops
In the second and third loops, the starting value is higher than the end. Maybe you want for ii=3:-0.001:.967108 (this c...

10 years 前 | 0

已回答
Finding coordinates for matrix from another matrix
I will assume that you want four-dimensional coordinates and that you want all the matches for each value. I suggest replacing ...

10 years 前 | 0

已回答
Assign to cell elements with both string and number?
You can use <http://www.mathworks.com/help/matlab/ref/num2str.html num2str> to convert |x| to string; but you need to make it op...

10 years 前 | 0

| 已接受

已回答
Parse error: usage might be invalid MATLAB syntax
You included the answers in the file, and MATLAB is trying to interpret them as commands. My guess is that you don't need the di...

10 years 前 | 1

| 已接受

提问


File names with spaces used as command line arguments
I am trying to run an external program with command line arguments. The syntax is like this: bertini <inputFile> <startpoin...

10 years 前 | 4 个回答 | 2

4

个回答

已回答
How to use if statement to test if it is a integer and real number?
An integer is also a real number, so you only need one test. Also, if you want to delete numbers that are not real, you need to ...

10 years 前 | 0

已回答
Basic differential solving and plotting problem for a part of an exam.
When you add some scalars to a vector, you get a vector, so [v*(1-v)*(v-alpha)-w+C; varepsilon*(v-gamma*w)] stacks 2-vec...

10 years 前 | 1

已回答
Anything to use instead of TwoD
It looks like <http://www.mathworks.com/help/matlab/ref/integral2.html integral2> might fit your needs, although it doesn't have...

10 years 前 | 0

已回答
simulating an unbias coin with a bias coin flip
I think that the simplest approach is to write a little function to simulate a single toss, and then build up your simulation fr...

10 years 前 | 0

| 已接受

已回答
How to rearrange the rows of a matrix?
The trick is to use the index from sorting the first column: [~,idx] = sort(A(:,1)); B = A(idx,:);

10 years 前 | 0

| 已接受

加载更多