help-octave
[Top][All Lists]
Advanced

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

Re: octave-fwrite-errors


From: Sepp Käsbauer
Subject: Re: octave-fwrite-errors
Date: Thu, 31 Jul 2003 16:48:07 +0200
User-agent: KMail/1.5.1

Am Donnerstag, 31. Juli 2003 16:13 schrieb Mike:
> > How it will give result out; I have the following simple expression

Hi, 
you made two litle errors. I think you want to do the following:

octave:7> volts=220;
octave:8> rs=1;
octave:9> rl=100;
octave:10> amps=220./(rs+rl);
octave:11> printf( "%f\n", amps);
2.178218


> >
> > volts=220; rs==1;
> > rl=100;amps = 220 ./ (rs+rl);
> > fwrite(amps);
> > So, it gives an error message "fwrite:
> > -Built-in function:COUNT=fwrite(FID,DATA,PRECISION,SKIP,ARCH)
> >  Write data in binary form of type PRECISION..."
> >With fprintf:
> > "Built-in function:fprintf(FID,TEMPLATE,...)
> >  This function is just like printf..."How will I fix it?
> > Thanks.
> > Mike
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------

-- 
Sepp Käsbauer
Rosenberger Hochfrequenztechnik
HF-Labor R&D QA
Hauptstrasse 1
83413 Fridolfing
Germany, Bavaria
Tel: +49-8684-18163
mailto:address@hidden
http://www.rosenberger.de




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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