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

5 Ansichten (letzte 30 Tage)
Amar
Amar am 28 Jul. 2013
Kommentiert: Voss am 21 Aug. 2024
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 Kommentare
Ramya M S
Ramya M S am 10 Feb. 2017
??? Error: File: aesinit.m Line: 1 Column: 35 Unexpected MATLAB expression.
Jan
Jan am 11 Feb. 2017
@Ramya M S: How can we help you?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Jan
Jan am 28 Jul. 2013
Open the file in the editor and look for red MLint marks on the right side.

Deva
Deva am 21 Aug. 2024
Pr_two_ray = Pt * (Gt * Gr * (transmitterHeight * receiverHeight)^2) ./ (distance.^4 * L);
Unrecognized function or variable 'Pt'.
  2 Kommentare
Walter Roberson
Walter Roberson am 21 Aug. 2024
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
Voss
Voss am 21 Aug. 2024
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'.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Entering Commands finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by