How to access GriddedLPVSS data at different scheduling parameters?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have built a 2*2 GriddedLPVSS model in Matlab using the following:
s = struct( ...
'Pgrid', [150, 150, 150, -150, -150, -150], ...
'Qgrid', [75, 0, -75, 75, 0, -75] );
SSArray.SamplingGrid = s;
sys = ssInterpolant(SSArray)
SSArray is a 4-D ss model. I want to access the state space model at a certain combination of scheduling parameters like (Pgrid:25,Qgrid:35) for example. How can I do that? I have attached the SSArray.mat.
댓글 수: 0
답변 (1개)
Andrew Ouellette
2025년 5월 12일
Hi Ali,
SSArray = rss(36,2,2,6); % random 2x2x6 ss array
s = struct( ...
'Pgrid', [150, 150, 150, -150, -150, -150], ...
'Qgrid', [75, 0, -75, 75, 0, -75] );
SSArray.SamplingGrid = s;
sys = ssInterpolant(SSArray); % LPV system
psys = psample(sys,[],25,35); % sys sampled at (Pgrid:25,Qgrid:35)
To verify, you can check the sampling grid parameter of the returned system.
psys.SamplingGrid
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!