Respondida

más de 9 años hace | 0

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

más de 9 años hace | 1

Pregunta

In MATLAB Answers, many answers are good enough to satisfy the questioner; but some go further. They may take extra care in expl...

más de 9 años hace | 4 respuestas | 2

### 4

respuestas

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 3

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 1

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

más de 9 años hace | 1

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

más de 9 años hace | 0

Respondida
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); ...

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Respondida
Many File Exchange submissions are actually folders with multiple files. As far as I can tell, File Exchange is simply classifyi...

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Pregunta

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

más de 9 años hace | 1 respuesta | 0

### 1

respuesta

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

Pregunta

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

casi 10 años hace | 4 respuestas | 2

### 4

respuestas

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

alrededor de 10 años hace | 0

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

alrededor de 10 años hace | 1

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

alrededor de 10 años hace | 0

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

alrededor de 10 años hace | 0

Respondida
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,:);

alrededor de 10 años hace | 0