[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: instrument-control / MATLAB compatibility
From: |
Stefan Mahr |
Subject: |
Re: instrument-control / MATLAB compatibility |
Date: |
Wed, 17 Jul 2013 23:52:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
> > > I'm about to work on octave instrument-control to improve
> compatibility to MATLABs instrument control. For 'fprintf' the
> online doc is not very helpful. However, the behaviour of
> instrument-controls 'fprintf' seems different compared to standard
> 'fprintf':
> > >
> > > fprintf(obj,'format','cmd','mode')
> > >
> > > 'format' can be a format specifier like %s, %c, or %d.
> > > 'cmd' is expected as a string.
> > >
> > > If 'cmd' is a string, a format specifier like '%d' doesn't make
> sense. Could someone test if 'cmd' could be a array of type 'double'
> too?
> > >
> > > fprintf(obj, '%d', [1 2 3 4])
> > >
> > > Thanks. Other hints are also welcome.
> > >
> > > Stefan
> >
> > Let me check that I got it right. You want that somebody tests in
> MATLAB, right?
> >
> Yes, correct.
>
> We've figured this out on #octave-de
> The result for fprintf(t,'%d',[1 2 3 4]); was
>
>>> fscanf(t)
> ans =
> 1234
>
Markus, thanks again for testing.