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

3 views (last 30 days)
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???

Answers (1)

ES
ES on 10 Mar 2017
Edited: ES on 10 Mar 2017
You have a ":" instead of ";" in >> Y=sqrtm(A):

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!