help-octave
[Top][All Lists]
Advanced

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

Re: Print column vectors with different sizes


From: Jordi Gutiérrez Hermoso
Subject: Re: Print column vectors with different sizes
Date: Thu, 1 Mar 2012 11:00:57 -0500

On 27 February 2012 16:15, Bernd Heinze <address@hidden> wrote:

> I've got the following problem, but wasn't able got find a solution
> so far:
>
> A program analyses some data and prints out the results as csv-files
> which contain one column vector with arbitrary size. I want to write
> a script which reads some of the csv-files (using wildcard input and
> globs() ) and prints the vectors into one new csv-file, while the
> heading contains the filename
>
>
> #Input from first file:
> a = [1;2;3];
> filename = "aaa";
>
> A = [A, a];
> file = strcat(file, ",", filename);
>
> #Input from second file:
> a = [1;2;3;4;5];
> filename = "bbb";
>
> A = [A, a]; # Here the error occurs

I didn't read this carefully enough, but perhaps you should use cell
arrays instead of matrices.

- Jordi G. H.


reply via email to

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