[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 30 Jun 95 16:58:15 CST
Can anyone help me with using "fscanf". My problem is:
Say the input file named "num" is :
pp = 898
uiu = 8990
then in octave:
>kk = fopen("num","r");
>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??
- help octave,
Shu-Kit Yeung <=