Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Variable with counter Date: Wed, 15 Jan 2020 08:20:10 +0100 Organization: A noiseless patient Spider Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 15 Jan 2020 07:20:09 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="faf37ae726d75c600a2f34762adfbef1"; logging-data="22553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1UXkasa/SoIMBrvkVnRL1TMkzYix8TXM=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cancel-Lock: sha1:5FPPIcej7+/5PLvyMrRLuA+9SnU= In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4285 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. > >