We’re rewarding the question askers & reputations are being recalculated! Read more.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 3684

Questions about the numerical programming language MATLAB.

5
votes
That is simply because flag is a defined command in matlab. Try typing flag just after having started Matlab and you will see a non-empty matrix appearing. If you type help flag you will see the … meaning of that function. Also, the function is selected by Matlab because you do not declare a variable called flag before your code. If you write flag=1 before your code, it works as expected. Still …
answered Oct 28 '13 by Dr_Sam
3
votes
It is indeed a tolerance on the relative residual $$ ||b-Ax_k|| / ||b||$$ In the webpage that you mention, you can find this information (very implicitly) [x,flag,relres] = gmres(A,b,...) also re …
answered Apr 3 '13 by Dr_Sam
4
votes
-\theta)f(t_{j+1}, \mathbf{y}^{(j+1)})\right) = \mathbf{0}$$. So, at each time step of your algorithm, you need to solve this non-linear equation. This can be done for example with the Matlab function …
answered Mar 11 '13 by Dr_Sam
3
votes
I can't access the article, but from what you describe, it looks quite normal that $\alpha$ and $\rho$ become close to $1$: if the method converges, you will have $$ X = \alpha(2I - XA)X $$ which is …
answered May 15 '13 by Dr_Sam
3
votes
I made some tests on a slightly different example (you can easily adapt to your need): I generate a 53534x3 random matrix in Matlab (7.9.0) R = rand(53534,3); and I try to extract those row …
answered Apr 15 '13 by Dr_Sam