Recent content by ciekaloos
-
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.- ciekaloos
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
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...- ciekaloos
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
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...- ciekaloos
- Thread
- Error Homework Index Troubleshooting
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help