help-octave
[Top][All Lists]
Advanced

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

Re: reading matrix of unknown dimensions from file.


From: Arno Peters
Subject: Re: reading matrix of unknown dimensions from file.
Date: Thu, 4 Jul 2002 19:51:09 +0200
User-agent: Mutt/1.4i

On Thu, Jul 04, 2002 at 10:37:17AM -0500, Mike Miller wrote:
> By the way, is there a way to load a file that looks like this...
> 
> 1 2 3 4
> 1 2
> 1 2 3 4 5
> 1 2 3
> 
> ...and have Octave automatically pad with zeros to produce a matrix in
> Octave that looks like this?
> 
> 1 2 3 4 0
> 1 2 0 0 0
> 1 2 3 4 5
> 1 2 3 0 0

Preprocess you file with the attached perl script.

Greetings,
-- 
Arno

Attachment: pad.pl
Description: Perl program


reply via email to

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