필터 지우기
필터 지우기

I cant make coder in my MATLAB 2013

조회 수: 1 (최근 30일)
123123
123123 2013년 8월 6일
Hello all, I am trying to do coder in matlab 2013 to C. And every time when i load my file omg.m befor i start to build its say that:The script omg.m cannot be used with code generation tools. Only functions are supported. In this file i put all the options to play some audio file like wav file.. Some one can offer me a good idee to solve this?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 8월 6일
You need to add the function header at the top of your file to make it a function instead of a script. See Scripts vs. Functions for more information. Scripts are not supported for code-generation, but functions are.
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 8월 6일
Try adding a pause(10) after the sound() so that the sound has time to play before the program exits.
123123
123123 2013년 8월 6일
Still i cant make it work i give up :( some can make it for me pls??!!

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

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by