Why I receive Error: Expression or statement is incomplete or incorrect?

for a simple problem I get this error: >> A=rand(12); >> Y=sqrtm(A): ??? Y=sqrtm(A): | Error: Expression or statement is incomplete or incorrect. Why???

回答 (1 件)

ES
ES 2017 年 3 月 10 日
編集済み: ES 2017 年 3 月 10 日

0 投票

You have a ":" instead of ";" in >> Y=sqrtm(A):

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

質問済み:

2017 年 3 月 10 日

編集済み:

ES
2017 年 3 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by