[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help octave
From: |
Shu-Kit Yeung |
Subject: |
help octave |
Date: |
Fri, 30 Jun 95 16:58:15 CST |
Hi,
Can anyone help me with using "fscanf". My problem is:
Say the input file named "num" is :
pp = 898
uiu = 8990
990
008
then in octave:
>kk = fopen("num","r");
>frewind(kk)
>k = fscan(kk,"pp = %f")
k = 898
>k = fscan(kk,"uiu = %f")
warning: fscanf: invalid conversion
error: value on right hand side of assignment is undefined
It seems like if I do the pattern matching consecutively, the "fscanf" would
not work any more; otherwise, it would work perfectly.
But in my assignment, I have to do pattern matching consecutively. How can I
solve this problem??
Can somebody help please??
Thank You!!
regards
Shu-Kit
- help octave,
Shu-Kit Yeung <=