ode2phv - ode to phase variable

조회 수: 14 (최근 30일)
Michael Bernard
Michael Bernard 2012년 3월 8일
Hi friends
I was reading a control system book by Saadat. I learned that I can used matlab to convert an ODE to state space phase variable by using the cofficient. The example from the book is below
ai = [2 4 6 8];
k = 10;
[A,B,C] = ode2phv(ai,k)
However, when I tried this example in Matlab, I got an error message saying
'??? Undefined function or method 'ode2phv' for input arguments of type 'double'.
Based on the errpr message, I decided to make an M-file and after running the M-file I got another error message:
Error in ==> ABC2phv at 3
[A,B,C]=ode2phv(a,K)
Therefore, I decided to check if I could find the command or function [A,B,C]=ode2phv(a,K) in my mylab .But when I checked the help, I couldnt find any command or function with [A,B,C]=ode2phv(a,K).
Can anyone help me out? How can I convert any ordinary differential equation to state space? Why is this command [A,B,C]=ode2phv(a,K) not working in my matlab?
I look forward to your help.
Thanks in Advance
  댓글 수: 1
Michael Bernard
Michael Bernard 2013년 2월 4일
I finally found solution to the problem. Guys please dont bother anymore. Simply had to write a function file that converts ordinary differential equations to state space phase variables.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by