[Ifit-users] iFit bug :)
Emmanuel FARHI
farhi at ill.eu
Tue Feb 12 16:32:19 CET 2013
Hi Sandor,
The allocation a(2)=iData(..) should work if 'a' is already an iData array.
It does work on the iFit 1.3 release I have...
Alternatively you can write
>> a=[];
>> a=[ iData(rand(10)) iData(peaks) ];
The labels can be made 'TeX' like by setting the Interpreter to TeX
(right click on a label in edit mode (with the Arrow tool from the
toolbar). The symbol for 'xi' is '\xi', not '/xi'.
Thanks for using iFit and reporting, Emmanuel.
On 02/11/2013 12:18 PM, Sandor Toth wrote:
> Dear Emmanuel,
>
> I am working on arrays of iData. Like a = zeros(iData,2,1)
> I would like to assign an iData to the second element of the array:
> a(2) = iData(rand(10));
>
> However this does not work. Is it possible to make such an assignment?
>
> Best regards,
>
> Sandor
>
>
> On Feb 5, 2013, at 11:00 AM, Sandor Toth <sandor.toth at psi.ch> wrote:
>
>> Is it possible to interpret axis labels as Matlab does?
>> Like writing '/xi' string on the x axis is written by the Greek character xi?
>>
>> Sandor
>>
>> On Feb 4, 2013, at 6:15 PM, Emmanuel FARHI <farhi at ill.fr> wrote:
>>
>>> Hello Sandor,
>>>
>>> you indded found a bug when plotting final fit results from the 'output'
>>> of 'fits'.
>>> To solve it, add after line 39 of Libraries/Optimizers/fminplot.m, before
>>> the 'else' keyword,
>>>
>>> [dummy, best] = sort(fvalHistory); % sort in ascending order
>>> best= best(1);
>>>
>>> this should solve the problem.
>>>
>>> An other way to plot the same thing is to use:
>>>
>>>>> plot(a, output.modelValue)
>>> Thanks for using iFit and reporting issues.
>>>
>>> Emmanuel.
>>>
>>> On Mon, February 4, 2013 14:35, Sandor Toth wrote:
>>>> Dear Sir/Madamme,
>>>>
>>>> I get an error message after the following code:
>>>>
>>>> a=load(iData, [ ifitpath 'Data/sv1850.scn' ]);
>>>> options=fminimfil('defaults');
>>>> options.OutputFcn='fminplot';
>>>>
>>>> [p,criteria,message,output]= fits(a, gauss, [], options);
>>>>
>>>> fminplot(output);
>>>>
>>>>
>>>> The error message:
>>>>
>>>> Undefined function or variable "best".
>>>>
>>>> Error in fminplot (line 126)
>>>> g=plot(iterHistory, fvalHistory,'b-', …
>>>>
>>>>
>>>> version(iData)
>>>> iFit/iData version 1.3 (Nov. 29, 2012) by E.Farhi, P. Willendrup and
>>>> Y.Debab, (c) ILL/DS/CS <farhi at ill.eu> EUPL.
>>>> Matlab version
>>>> 8.0.0.783 (R2012b)
>>>>
>>>> Best regards,
>>>>
>>>> Sandor Toth
>>>>
>>>>
>>>>
>>>> Dr. Sándor Tóth
>>>>
>>>> Laboratory for Neutron Scattering (LNS)
>>>> Paul Scherrer Institute
>>>> WHGA 150
>>>> CH-5232 Villigen PSI
>>>> Switzerland
>>>>
>>>> phone: +41 56 310 31 23
>>>> fax: +41 56 310 29 39
>>>>
>>>> email: sandor.toth at psi.ch
>>>> web: http://www.psi.ch/lns/sandor-toth
>>>>
>>>>
>>>
>>> --
>>> FARHI Emmanuel <farhi at ill.fr>
>>> Groupe DS/CS, ILL4/156, Tel 04 76 20 71 35
>>> ILL, Grenoble
>>>
>
--
Emmanuel FARHI,www.ill.eu/computing/people/emmanuel-farhi \|/ ____ \|/
CS-Group ILL4/221, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~
6 rue J. Horowitz, BP 156, 38042 Grenoble Cedex 9,France /_( \__/ )_\
Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06 \__U_/
More information about the ifit-users
mailing list