Initialize sAud and sFitmodel in matlab?

Post Reply
shaikath
Posts: 20
Joined: Wed Oct 28, 2020 4:12 pm

Initialize sAud and sFitmodel in matlab?

Post by shaikath » Wed Jul 21, 2021 11:35 pm

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.

tobiasherzke
Posts: 64
Joined: Mon Jun 24, 2019 12:51 pm

Re: Initialize sAud and sFitmodel in matlab?

Post by tobiasherzke » Thu Jul 22, 2021 8:12 am

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).

tobiasherzke
Posts: 64
Joined: Mon Jun 24, 2019 12:51 pm

Re: Initialize sAud and sFitmodel in matlab?

Post by tobiasherzke » Thu Jul 22, 2021 8:27 am

tobiasherzke wrote:
Thu Jul 22, 2021 8:12 am
As an alternative, [...] (see https://github.com/HoerTech-gGmbH/openM ... ules.m#L30).
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.

Post Reply