MATLAB Answers

How to compile gtcc.m?!

16 ビュー (過去 30 日間)
Jack Latham
Jack Latham 2019 年 8 月 22 日
Edited: Monika Hatile 2019 年 12 月 26 日 8:42
I have code that extracts a number of features, including gammatone cepstral coefficients using the matlab function gtcc. This section is currently too slow for my application, so I'm trying to find ways to speed up the process, including compiling it to mex. In the documentation, extended capabilities lists code generation using the matlab compiler.
I can't get this to work. I've tried calling using a second function without success.
I get the following error, which I do not know how to overcome...
"Failed to compute constant value for nontunable property 'WindowLength'. In code generation, nontunable properties can only be assigned constant values."

  1 件のコメント

Monika Hatile
Monika Hatile 2019 年 12 月 26 日 8:42
Does GTCC function support in Metlab 2015

サインイン to comment.

件の回答 (1)

Divya Yerraguntla
Divya Yerraguntla 2019 年 8 月 30 日
Hi Jack,
Code generation does not support assigning an object of a value class into a nontunable property. It seems like the ‘WindowLength’ property is not assigned a constant value in your case and hence the error is showing up. Could you have a look at your code to ensure constant sizes and values are used in it. You could have a look at this link for more information on MATLAB Classes Definition for Code Generation.
Hope it helps!

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

Translated by