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.

回答(1 个)

Andrew Ouellette
Andrew Ouellette 2025-5-12
Hi Ali,
You can sample your LPV systems using psample.
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
ans = struct with fields:
Pgrid: 25 Qgrid: 35 Time: 0

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by