help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlmwrite


From: Carnë Draug
Subject: Re: dlmwrite
Date: Sun, 26 Jun 2011 14:46:40 +0100

>>> 2011/6/25 Susanne Nieß<address@hidden>:
>>>
>>> I have a problem with dlmwrite.
>>> The code attached in bam.m  works fine on matlab producing a normal
>>> matrix
>>> file. In octave, however, it produced the file qjbx0203 that I also
>>> attached
>>> with a "g" following every number. Octave itself is not able to read this
>>> crazy file. This is a real problem for me because I need such files and
>>> have
>>> only limited possibilities to make them on matlab. Could you please help
>>> me?
>>
>> I believe you forgot to attach the file. Try using pastebin.com
>> instead of attaching files.
>>
> On 26 June 2011 13:23, Susanne Nieß <address@hidden> wrote:
> Sorry. Here it is:
>
> bam.m:
> a=load('qjbx1203');
> a=spconvert(a);
> b=load('qjbx013');
> b=spconvert(b);
> c=a*b;
> [q1,q2,q3]=find(c);
> q=[q1 q2 q3];
> dlmwrite('qjbx0203',q,'delimiter',' ','precision',20);
> clear;
>
> qjbx0203:
> 1g 1g 6g
> 2g 2g 2g
> 3g 2g 2g
> 4g 3g 2g

You forgot to also reply to the mailing-list. It's better to keep
conversations there so that everyone can help. Also, you didn't attach
the files with the original matrix (qjbx1203 and qjbx013).

Anyway, I can read the file generated with dlmwrite, no problem, with
dlmread. Try:

dlmread('qjbx0203')

You could use the command 'save' to save the matrix into a file as well.

Carnë Draug

Attachment: bam.m
Description: Text document

Attachment: qjbx0203
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]