How to resolve error showing 'Unexpected matlab expression'?????
조회 수: 26 (최근 30일)
이전 댓글 표시
I am getting an error as Unexpected matlab expreesion; but i am neither be able to find out which expreesion is wrong and nor be able to resolve this error. Please help me...
댓글 수: 3
답변 (2개)
Jan
2013년 7월 28일
Open the file in the editor and look for red MLint marks on the right side.
댓글 수: 0
Deva
2024년 8월 21일
Pr_two_ray = Pt * (Gt * Gr * (transmitterHeight * receiverHeight)^2) ./ (distance.^4 * L);
댓글 수: 2
Walter Roberson
2024년 8월 21일
I do not see any problems with that code.
Pt = rand();
Gt = rand();
Gr = rand();
transmitterHeight = rand();
receiverHeight = rand();
distance = rand();
L = rand();
Pr_two_ray = Pt * (Gt * Gr * (transmitterHeight * receiverHeight)^2) ./ (distance.^4 * L)
Voss
2024년 8월 21일
Make sure Pt is defined before you try to use it.
Gt = rand();
Gr = rand();
transmitterHeight = rand();
receiverHeight = rand();
distance = rand();
L = rand();
Pr_two_ray = Pt * (Gt * Gr * (transmitterHeight * receiverHeight)^2) ./ (distance.^4 * L);
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!