How to resolve error showing 'Unexpected matlab expression'?????

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

Image Analyst
Image Analyst 2013년 7월 28일
편집: Image Analyst 2013년 7월 28일
How can we possibly help you considering what you've given us? It's probably a syntax error where you're missing an end or brace or something. Why don't you post the error message so you can get some help? And since this kind of error often involves nearby lines, post the chunk of code around the line that it complains about.
??? Error: File: aesinit.m Line: 1 Column: 35 Unexpected MATLAB expression.
@Ramya M S: How can we help you?

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

답변 (2개)

Jan
Jan 2013년 7월 28일

1 개 추천

Open the file in the editor and look for red MLint marks on the right side.
Deva
Deva 2024년 8월 21일
Pr_two_ray = Pt * (Gt * Gr * (transmitterHeight * receiverHeight)^2) ./ (distance.^4 * L);
Unrecognized function or variable 'Pt'.

댓글 수: 2

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)
Pr_two_ray = 23.1791
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);
Unrecognized function or variable 'Pt'.

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

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2013년 7월 28일

댓글:

2024년 8월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by