Initialize sAud and sFitmodel in matlab?
Initialize sAud and sFitmodel in matlab?
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.
-
- Posts: 120
- Joined: Mon Jun 24, 2019 12:51 pm
Re: Initialize sAud and sFitmodel in matlab?
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).
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).
-
- Posts: 120
- Joined: Mon Jun 24, 2019 12:51 pm
Re: Initialize sAud and sFitmodel in matlab?
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.tobiasherzke wrote: ↑Thu Jul 22, 2021 8:12 amAs an alternative, [...] (see https://github.com/HoerTech-gGmbH/openM ... ules.m#L30).