Re: Exporting matrices without filling blank space with zeros [message #67650] |
Wed, 19 August 2009 10:25 |
Jeff[2]
Messages: 18 Registered: November 2007
|
Junior Member |
|
|
On Aug 19, 1:25 pm, Spon II <christoph.b...@gmail.com> wrote:
> On Aug 19, 2:46 pm, Julio <julio.esque...@gmail.com> wrote:
>
>
>
>> I have several arrays with one column, but with different number of
>> lines. For example, arrays 1 and 2:
>
>> array1
>> 10
>> 30
>> 12
>> 34
>> 12
>
>> array2
>> 102
>> 34
>> 14
>
>> I want to put these arrays in one ASCII file or SYLK spreadsheet, like
>> this:
>
>> 10 102
>> 30 34
>> 12 14
>> 34
>> 12
>
>> I guess it must be easy, but I can't do that, once the output matrix
>> fills the blank spaces with zeros. How can I do that?
>
>> Best
>> Julio
>
> Hi Julio,
>
> If you use a string array as your output matrix, the zeroes should be
> gone, replaced by blank strings.
> Regards,
> Chris
Yes, when using string array the output matrix has no zeros, but the
real values are put in the same column. A already solved this problem
using PRITF with FORMAT option.
Thanks
Julio
|
|
|
Re: Exporting matrices without filling blank space with zeros [message #67653 is a reply to message #67650] |
Wed, 19 August 2009 09:25  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Aug 19, 2:46 pm, Julio <julio.esque...@gmail.com> wrote:
> I have several arrays with one column, but with different number of
> lines. For example, arrays 1 and 2:
>
> array1
> 10
> 30
> 12
> 34
> 12
>
> array2
> 102
> 34
> 14
>
> I want to put these arrays in one ASCII file or SYLK spreadsheet, like
> this:
>
> 10 102
> 30 34
> 12 14
> 34
> 12
>
> I guess it must be easy, but I can't do that, once the output matrix
> fills the blank spaces with zeros. How can I do that?
>
> Best
> Julio
Hi Julio,
If you use a string array as your output matrix, the zeroes should be
gone, replaced by blank strings.
Regards,
Chris
|
|
|