How to resolve error showing 'Unexpected matlab expression'?????
24 次查看(过去 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 个)
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!