[petsc-users] MatViewAndMatlabLoad

Jed Brown jed at jedbrown.org
Sat Jul 19 11:33:23 CDT 2014


Oo       <wumeng07maths at qq.com> writes:

> Hi Jed,
> The matrix file's structure likes
> ==============================
> %Size = n n
> %Nonzeros = m
> zzz = zeros(m, 3);
> zzz = [
> ***
> ***
> ***
> ***
> ... ...
> ];
>
>
> Mat_0x84000000_0 = spconvert(zzz);
> ================================
>
>
> How can I read this file in Matlab? 

You just execute that file, but you should definitely use the binary
format unless this is just for debugging (and even then, you should
generally use the binary format; just last week a user thought they had
a bug, but in fact, small errors from rounding in the ASCII format
cascaded to make what looked like a significant discrepancy).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140719/33dbdc8d/attachment.pgp>


More information about the petsc-users mailing list