Re: Fast way to make small, batch changes to a spa



I appreciate your help, but unfortunately the Matlab find command
attempts to linearize the indexes in S2, and I get this message:

??? Error using ==> find
Matrix is too large to return linear indices.
Use [i,j] = find(S) for sparse matrix.

I've always wished there was a way to do something like this with
subscripts, i.e.,
[i,j,k] = find(S2);
S1(i,j) = S2(i,j);

Unfortunately, the above commands don't behave as I would have expected
(I know what they do, I just don't know why the language was designed
to do this).

Any other ideas?
-Zach

.



Relevant Pages

  • Dulmage-Mendelsohn decomposition
    ... Dulmage-Mendelsohn decomposition of a sparse matrix, like the 'dmperm' ... command in MATLAB? ...
    (comp.lang.c)
  • Problem with filling in sparse matrix using cell array subscripting
    ... I have a sparse matrix A of all zeros whose dimensions are 16384x41. ... I'm using a cell array to subscript into it. ... However, when I run this command, it takes a *really* long time to execute. ... then ORing B with A. But I wanted to see if anyone knew why the current command would produce such an odd problem. ...
    (comp.soft-sys.matlab)
  • Re: how to control the time step in .Tran analysis in spice3?
    ... > with an FFT, the linear interpolation will introduce enough error that ... I tried the command "linearize", ... The result is still as there is no ".linearize" command. ...
    (sci.electronics.cad)
  • inverse of sparse matrix
    ... I need to find the inverse of a very large sparse matrix. ... The problem is that Matlab yields: ... I tried to find the inverse of A by using the command ... But C*A is not equal to identity matrix. ...
    (comp.soft-sys.matlab)