transfer function and loops

Hello, I am trying to create a matlab file that will take a transfer function with a symbolic variable i and print the poles and display the pzplot for each value of i if i put it into a loop. so for instance, here is the code I tried.
for i = 1:5 num = [1]; dem = [1 4 (i-4) (8*i)]; pzplo(f) end;
I want it to plot all of the poles from i=1 to i=5 but it will only display the last one. I tried putting the function into an array and referring to the indices to plot out the poles, but I can't use an array with a transfer function i guess because it says it cant convert from double to tf. I dont know how to make a non-double array. any help would be greatly appreciated, thanks

 채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 28일

0 개 추천

Hints:
  • read the documentation for "hold"
  • read the documentation for cell arrays

댓글 수: 1

me
me 2011년 3월 29일
I see thanks. I can use the hold function.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dynamic System Models에 대해 자세히 알아보기

질문:

me
2011년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by