help-octave
[Top][All Lists]
Advanced

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

Re: Question on printing ..


From: Dr.-Ing. Dieter Jurzitza
Subject: Re: Question on printing ..
Date: Fri, 05 May 2017 20:46:21 +0200
User-agent: KMail/4.14.10 (Linux/4.1.39-53.4-default; KDE/4.14.18; x86_64; ; )

Dear listmembers,
sorry for the noise - after one day of fiddling (grrrrrr :-) ) my son helped 
me out - just give the entire array as parameter and things work like a charm 
- and I nearly broke my head how to make this the complicated way ...
Thank you for looking into this,
regards






Dieter Jurzitza

Am Freitag, 5. Mai 2017, 19:56:39 schrieb Dr.-Ing. Dieter Jurzitza:
> Dear listmembers,
> say you have a function called f having two variables as parameters:
> 
> function f(xarray,yarray)
>       outfile=fopen("test.dat", "w");
>       fprintf(outfile, "%12.8f %12.8f\n", [xarray; yarray[1:]);
>       fclose (outfile)
> endfunction
> 
> assuming xarray being an array of type 1:1000 and yarray being an array of
**********************

-- 
-----------------------------------------------------------
Dr.-Ing. Dieter Jurzitza                    76131 Karlsruhe




reply via email to

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