tracking an element from an array

조회 수: 1 (최근 30일)
Krishnendu Mukherjee
Krishnendu Mukherjee 2012년 1월 27일
there is a model of pid controller. now im simulating it through sim() command from m-file. [X T Y]=sim('modelname','timespan'); im using 'timespan' as [0 .01 .1] as like-(Tstart T(outputtime) Tfinal] format. now the output of the pid controller is being tabulated in matlab base window as >>T=[ 0 .01 .1] Y=[ 2.35 3.01 3.11 ] X=[.767 .767 .8765 ................] now, thing is that i have to return the value of the output(Y) for the time T(outputtime).how will i get that?

채택된 답변

TAB
TAB 2012년 1월 27일
Find value of Y at time tm
Value = Y(T==tm);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by