Page 1 of 1
Initialize sAud and sFitmodel in matlab?
Posted: Wed Jul 21, 2021 11:35 pm
by shaikath
Are there functions available to quickly initialize default sAud and sFitmodel structures in matlab? I was trying to test the gain rules without using the GUI.
Re: Initialize sAud and sFitmodel in matlab?
Posted: Thu Jul 22, 2021 8:12 am
by tobiasherzke
There are functions to create and modify these structures in
https://github.com/HoerTech-gGmbH/openM ... s/libfuncs. The functions there get combined into libraries (files starting with "lib" in
https://github.com/HoerTech-gGmbH/openM ... ols/mfiles). In the libraries, these functions have help texts.
As an alternative, you can do what I did when I needed sAud and sFitmodel for an automated test: I had set a breakpoint in one of the fitting rules, used the Fitting GUI, and when the breakpoint was hit, saved sAud and sFitmodel in a .mat file, which was then loaded in the test (see
https://github.com/HoerTech-gGmbH/openM ... ules.m#L30).
Re: Initialize sAud and sFitmodel in matlab?
Posted: Thu Jul 22, 2021 8:27 am
by tobiasherzke
I remembered that incorrectly. But see lines 11-28 in that file for how to initialize these structures with a few lines of Matlab/Octave code.