How to Compile an Application with the "pspectrum" function?

Hello,
I am trying to compile an application that uses the "pspectrum" function (I think it is from the Signal Processing toolbox), but I am having trouble with including the right files in the compiler. I have attached a screenshot of my compiler and the error message I am getting from my compiled application. Are there any other / different files that I should be including in the compiler, or are there other issues that need to be addressed here as well?

댓글 수: 7

Here are the attachments:
Do you manually add that sptfunctions folder or did it find that automatically?
I manually added it after I got the error message. That folder contains the pspectrum.m function file
Kevin Chng
Kevin Chng 2019년 8월 2일
편집: Kevin Chng 2019년 8월 2일
Hi Jeff,
I'm not sure how is your pspectrum.m, I assume there is a function pspectrum for this m file. I guess you dont have signal processing toolbox, therefore you manually add the function to the path for compiling. It should work.
Let try add the script instead of folder to the path. Add pspectrum.m script not folder path.
Tried that before but was getting the same error. I moved that function to our file path and added it to the compiler, and got a new error message that I attached to this message.
Does anyone know where "signalanalyzer.internal.Spectrogram" is defined? I cannot find it in the functions that I'm looking at in the MATLAB toolbox folders.
My latest update in compiling is attached. I compiled the pspectrum.m and signalAnalyzer.m files and the "signal" toolbox folder. Now I need to include "coder", which I was unable to do by compiling with the entire "coder" toolbox folder.

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

 채택된 답변

Jeff
Jeff 2019년 8월 26일

1 개 추천

After speaking with a MATLAB representative, we found that the issue is that the pspectrum function cannot be compiled with the MATLAB Application Compiler in versions before 2019a.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2019년 8월 19일

0 개 추천

  • The signalAnalyzer app is not compilable.
  • You shouldn't have to do anything to compile pspectrum, it should just work. Do you have a license for signal processing toolbox checked out at compile time?
  • You may need to run: rehash toolboxcache

댓글 수: 1

The application I am trying to compile references pspectrum so I have been trying to compile with a number of file required to run. The latest error I get when I add the entire signal toolbox folder is the "Undefined variable "coder" or class "coder.internal.isCompiled"." error when I am running the part of my application that uses pspectrum.

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

카테고리

도움말 센터File Exchange에서 Communications Toolbox에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2019년 8월 1일

답변:

2019년 8월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by