Generating C Code from MATLAB Code

조회 수: 4 (최근 30일)
Nour Sd
Nour Sd 2017년 9월 30일
댓글: Rena Berman 2017년 10월 30일
hello, i'm new in Matlab ;
I'm trying to use Matlab coder to generate my c code, I have some mistakes, I tried many times to fix it, but I can't find a solution, please help me to fix .thanks
  댓글 수: 1
Rena Berman
Rena Berman 2017년 10월 30일
(Answers Dev) Restored edit

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

채택된 답변

Marco
Marco 2017년 9월 30일
편집: Walter Roberson 2017년 9월 30일
Hello Nour,
BR Marco

추가 답변 (3개)

Marco
Marco 2017년 10월 1일
Hello Nour, It is necessary to inizialize the variables. For example, I see that S is a matrix and you can initialize it as a matrix of all zeros elements: S = zeros(rows,columns).
In the same way you can do for the other variables.
BR Marco

Marco
Marco 2017년 10월 1일
편집: Walter Roberson 2017년 10월 1일

Marco
Marco 2017년 10월 2일
Hello, I think that this error is due to the fact that in the main file (the file where you call your function) you don't pass the three inpu values that the function expects.

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by