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!