Matrix must be square

5 views (last 30 days)
Asif Rashid
Asif Rashid on 22 Jul 2020
Commented: Dawit Teshome on 19 Feb 2021
p=(1./TSR+0.08.*(PA))-(0.035./(PA.^3+1));
l=inv(p);
p is a matrix of 1*20.
i want to take its inverse but matlab error says ''Matrix must be square''. please tell me, what shall i do if i want to take the inverse of p.
Thankyou

Accepted Answer

madhan ravi
madhan ravi on 22 Jul 2020
  2 Comments
Asif Rashid
Asif Rashid on 22 Jul 2020
Thankyou Sir. its working
Dawit Teshome
Dawit Teshome on 19 Feb 2021
Hello! Madhan,
I am trying to convert a model from continuous to discrete and I used >> c2d(ASAS_Model,0.1,'zoh'); but I got errror on converting to discrete: Please find the below the error.
>> c2d(ASAS_Model,0.1,'zoh');
Error using c2d (line 57)
The A matrix must be square.
Could you please give us feedback about this issue. Thanks!
Dawit Teshome

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!