Tools: Test: Fix Matlab compatibility in process_test.m

The set of figure property in figure() command is not supported
in Matlab. The separate set() property works for both Octave and
Matlab.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2020-12-01 15:00:23 +02:00 committed by Liam Girdwood
parent 65217991dd
commit cc1cd8a4af
1 changed files with 2 additions and 1 deletions

View File

@ -396,7 +396,8 @@ for i = 1:length(test.ph)
end
for i = 1:length(test.fh)
figure(test.fh(i), 'visible', test.plot_visible);
figure(test.fh(i));
set(test.fh(i), 'visible', test.plot_visible);
pfn = sprintf('plots/%s_%s_%d_%d_%d_%d.png', ...
testacronym, t.comp, ...
t.bits_in, t.bits_out, t.fs, i);