Parse error: The expression to the left of the equals sign is not a valid target for an assignment.

6 ビュー (過去 30 日間)
Hi every body
I have been used Mathlab Fun to sort ten values. but I get error
Parse error: The expression to the left of the equals sign is not a valid target for an assignment.
Please let us know what is the error description.
function B = selectionSort( Vc, Vc1, Vc2, Vc3, Vc4, Vc5, Vc6, Vc7,Vc8,Vc9)
{
A=[ Vc Vc1 Vc2 Vc3 Vc4 Vc5 Vc6 Vc7 Vc8 Vc9]
B : sort(A)
}

採用された回答

madhan ravi
madhan ravi 2019 年 2 月 19 日
Remove curly braces.
B=sort(A);
Numbering variables is not recommended.
  3 件のコメント
Arkanra Kadhum
Arkanra Kadhum 2019 年 2 月 19 日
thank you Madhan
it is work
best regards
arkan

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by