Rank: 221246 based on 0 downloads (last 30 days) and 0 file submitted
photo

Silvia Sasheva

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Silvia Sasheva View all
Updated File Comments Rating
03 Feb 2012 (Block) tri-diagonal matrices Generate (block) tridiagonal matrices Author: John D'Errico

Hello, John,
I did it in other way. I defined Amdb (A main diag. boundary blocks) in your code and then applied this:
s=repmat(Amdb(:),1,1);
v=[s;repmat(Amd(:),n-2,1);s];
It works and now I will try to go further with the solution of the examined problem. Thank you and regards!

01 Feb 2012 (Block) tri-diagonal matrices Generate (block) tridiagonal matrices Author: John D'Errico

Thank you for the quick and complete answer. Unfortunately, I'm not familiar with a "repmat" and how to replicate only the middle blocks and replace the first and the last one.
I tried this:
v = repmat(AmdF(1),n,1);
v = repmat(Amd(:),n,1);
v = repmat(AmdL(n),n,1);
but of course it doesn't work....
Have you got a clue how to call it?
Thank you in advance and appreciation again for the code!!!

01 Feb 2012 (Block) tri-diagonal matrices Generate (block) tridiagonal matrices Author: John D'Errico

Hello,
can please help me to find out if it's possible, using "blktridiag", to generate a block tridiagonal matrix A, whose main diagonal (Amd) to starts and ends with different copies of Amd. I.e. AmdFirst and AmdLast~= Amd...
example:
[AmdF Asup 0 0 0;
Asub Amd Asup 0 0;
0 Asub Amd Asup 0;
0 0 Asub Amd Asup;
0 0 0 Asub AmdL]

I hope that the explanation was clear enought! Thank you in advance!
Regards

19 Jan 2012 (Block) tri-diagonal matrices Generate (block) tridiagonal matrices Author: John D'Errico

Hello, can you help with this error:??? Undefined function or method 'blktridiag' for input arguments of type
'double'.
Probably, it is a stupid question, but I really need help! Thank you in advance!
Best Regards!

Contact us