mpower Matrix must be square.

Basic question about MATLAB programming
Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

mpower Matrix must be square.

Post by matlab1 »

this
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: mpower Matrix must be square.

Post by matlab1 »

Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar.

To perform elementwise matrix powers, use '.^'


To perform elementwise matrix multiplication, use '.*'


To perform elementwise matrix division, use './'
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests