Recent content by ciekaloos

  1. C

    Troubleshooting an Index Error in Homework Equations

    yes.. im new with control theory. i can see the problem. its because there i no zero in my function. righ? how I am suppose to correct that.
  2. C

    Troubleshooting an Index Error in Homework Equations

    no.. i have long script for this.. but error still occur.. can you help check the error for me.. this is the whole script: num=[ 1 ]; den=[1 3.236068 5.236068 5.236068 3.236068 1]; [z,p,k]=tf2zp (num,den); for i=1: max (size(z)), if real (z(i))>0, z(i)=-2; end...
  3. C

    Troubleshooting an Index Error in Homework Equations

    Homework Statement for i=1: max (size(z)), if real (z(i))>0, z(i)=-2; end end for i=2: max (size(p)), if real (p(i))>0, p(i)=-2; end end Homework Equations why there is always error.. it said that ? Attempted to access z(1); index out of...
Back
Top