필터 지우기
필터 지우기

How to compile gtcc.m?!

조회 수: 1 (최근 30일)
Jack Latham
Jack Latham 2019년 8월 22일
편집: Monika Hatile 2019년 12월 26일
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일
편집: Monika Hatile 2019년 12월 26일
Does GTCC function support in Metlab 2015

댓글을 달려면 로그인하십시오.

답변 (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!

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by