Re: File writing Problem
- From: Vamsi <vamsi_219@xxxxxxxxx>
- Date: Wed, 31 Aug 2005 09:52:54 -0400
It's not a homework or something. I have just taken one example to
explain you the problem I am facing. The thing is that if i want to
perform the same operations on 5 different pairs of numbers and
append them to the file how can I do it?
Jérôme wrote:
>
>
> Is it a homework or something ?
>
> a=15;
> b=4;
>
> fid=fopen('results.txt','wt');
> fprintf(fid,'%d\n',a+b);
> fprintf(fid,'%d\n',a-b);
> fprintf(fid,'%.2f\n',a/b);
> fprintf(fid,'%d\n',a*b);
> fclose(fid);
>
> Jérôme
.
- Follow-Ups:
- Re: File writing Problem
- From: Jérôme
- Re: File writing Problem
- From: Peter Boettcher
- Re: File writing Problem
- References:
- Re: File writing Problem
- From: Jérôme
- Re: File writing Problem
- From: Vamsi
- Re: File writing Problem
- From: Jérôme
- Re: File writing Problem
- From: Vamsi
- Re: File writing Problem
- From: Jérôme
- Re: File writing Problem
- Prev by Date: XLSREAD - Quick/Easy Question
- Next by Date: Re: File writing Problem
- Previous by thread: Re: File writing Problem
- Next by thread: Re: File writing Problem
- Index(es):
Relevant Pages
|