필터 지우기
필터 지우기

error while compiling matlab file

조회 수: 1 (최근 30일)
Wajahat
Wajahat 2017년 5월 3일
편집: Jan 2017년 5월 3일
when i compile the the programm (see attached file), an error occur in defining mu1, please help me, how can i define mu1
  댓글 수: 2
Jan
Jan 2017년 5월 3일
편집: Jan 2017년 5월 3일
There is no attached file. Please do not post code as screenshot, because this is less useful for creating an answer. Whenever you mention an error in the forum, post a complete copy of the message instead of letting the readers guess, what you see.
Adam
Adam 2017년 5월 3일
You didn't attach anything. And what do you mean by 'compile'? Are you using Matlab Coder to produce C++ code?
mu1 isn't defined at all in the code you give so obviously using it as an index will give an error.

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

채택된 답변

Jan
Jan 2017년 5월 3일
편집: Jan 2017년 5월 3일
mu1 is used before it is defined. What is the prupose of:
real(mu1) = -log(1.3);
imag(mu2) = log(1.8);
? real() is a function and you cannot assign a value to the output of a function. Do you mean:
mu1 = -log(1.3) + 1i * log(1.8);
?
Then omit this line, which actually replaces a value by its value:
mu1 = real(mu1) + i .* imag(mu1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by