help-octave
[Top][All Lists]
Advanced

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

Re: sscanf in Octave.


From: JohnDaVinci
Subject: Re: sscanf in Octave.
Date: Tue, 17 Oct 2006 13:34:30 -0700 (PDT)

Quentin,

     Sure thing.  Octave version is 2.1.57.

     In the cheese variable is this: Oct_10_18-13-23

     Is 2.9.9 one of the beta versions listed as possible "unstable?"

Thanks,
John DaVinci


Quentin Spencer wrote:
> 
> JohnDaVinci wrote:
>> I'm trying to port a MATLAB script to an Octave script.  Supposedly this
>> is
>> an easy process, but I'm getting an error on one line of the MATLAB
>> script. 
>> The function also exists in Octave, but it does not work for whatever
>> reason.
>>
>> Here is the line:
>>
>> [data, count] = sscanf(cheese, '%3s_%d_%d-%d-%d', Inf)
>>
>>
>> The error I get is "wrong type argument: file".
>>
>> How can augment this line to make it work, and what am I currently doing
>> wrong?
>>   
> 
> 
> You need to tell us which version of octave you're using, and what is in 
> the variable "cheese". I tried this on 2.9.9 with just some random 
> string data and it seemed to work.
> 
> Quentin
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 
> 

-- 
View this message in context: 
http://www.nabble.com/sscanf-in-Octave.-tf2461253.html#a6863636
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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