Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4283 > unrolled thread

Variable with counter

Started byJörg Buchholz <bookwood4new@freenet.de>
First post2020-01-14 14:16 +0100
Last post2020-01-15 08:20 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Variable with counter Jörg Buchholz <bookwood4new@freenet.de> - 2020-01-14 14:16 +0100
    Re: Variable with counter Karl Ratzsch <mail.kfr@gmx.net> - 2020-01-14 19:28 +0100
      Re: Variable with counter Jörg Buchholz <bookwood4new@freenet.de> - 2020-01-15 08:20 +0100

#4283 — Variable with counter

FromJörg Buchholz <bookwood4new@freenet.de>
Date2020-01-14 14:16 +0100
SubjectVariable with counter
Message-ID<qvkf04$kob$1@dont-email.me>
Hello,

is it possible to create variables with a counter, like A1, A2, A3 and
so on?

What I want do do is the following:

do for [i=1:4]{
stats 'test.csv' every ::3:i:7:i u 6 nooutput
print STATS_min
}

This print the min value from block 1 - 4 to the display. But I want to
have it at 4 different variables, like B1, B2, B3, B4.

Jörg

[toc] | [next] | [standalone]


#4284

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2020-01-14 19:28 +0100
Message-ID<qvl17s$ss2$1@solani.org>
In reply to#4283
Something like "help arrays" ?


Am 14.01.2020 um 14:16 schrieb Jörg Buchholz:
> Hello,
> 
> is it possible to create variables with a counter, like A1, A2, A3 and
> so on?
> 
> What I want do do is the following:
> 
> do for [i=1:4]{
> stats 'test.csv' every ::3:i:7:i u 6 nooutput
> print STATS_min
> }
> 
> This print the min value from block 1 - 4 to the display. But I want to
> have it at 4 different variables, like B1, B2, B3, B4.

[toc] | [prev] | [next] | [standalone]


#4285

FromJörg Buchholz <bookwood4new@freenet.de>
Date2020-01-15 08:20 +0100
Message-ID<qvmef9$m0p$1@dont-email.me>
In reply to#4284
On 14.01.2020 19:28, Karl Ratzsch wrote:
> Something like "help arrays" ?

Thanks for the hint.

array B[4]
do for [i=1:4]{
stats 'test.csv' every ::3:i:7:i u 6 nooutput
B[i] = STATS_min
}

This works.

Jörg

> 
> Am 14.01.2020 um 14:16 schrieb Jörg Buchholz:
>> Hello,
>>
>> is it possible to create variables with a counter, like A1, A2, A3 and
>> so on?
>>
>> What I want do do is the following:
>>
>> do for [i=1:4]{
>> stats 'test.csv' every ::3:i:7:i u 6 nooutput
>> print STATS_min
>> }
>>
>> This print the min value from block 1 - 4 to the display. But I want to
>> have it at 4 different variables, like B1, B2, B3, B4.
> 
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web