-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi,
after having bought your 2020 book on Piecewise Affine Control: Continuous Time, Sampled Data, and Networked Systems, I wanted to reproduce the examples you give in the book. Then I have learnt about the PWATOOLS toolbox for Matlab. Although it seems not updated for a few years, I installed it in my recent Matlab (R2022a) and tried running the basic example of a nonlinear resistor you describe in Chapter 4 of the manual and for which you also give a convenience script in the examples directory.
Stepping into the directory I run in Matlab
>> nonlinear_resistor_non
Unrecognized field name "Resolution".
Error in PWAComp (line 21)
nlsys.Resolution = model.Resolution;
Error in nonlinear_resistor_non (line 41)
[pwainc, pwasys, nlsys]=PWAComp(model);Indeed, the created model has no such field:
>> model
model =
struct with fields:
A: [2×2 double]
aff: [2×1 double]
Bx: [2×1 double]
Domain: {[-20 20] [-20000 20000]}
fx: @resistor_nonlinearity
NonlinearDomain: [2×1 double]
xcl: [2×1 double]
mtd: 'Multiresolution'
NR: 3
Rstar: [0.2000 0.6000]
NonlinearStateEquations: [0 1]
This suggests that it is perhaps not related to my using a newer Matlab version than you guys used back in 2011.
Is there some easy fix for this?
And a more general question: is the use of the toolbox still recommended? Perhaps it was just some academic-paper accompanying code, which was not intended for the use by the public. It looks like quite a lot of work has already been invested into the toolbox. Preparing a grad course on hybrid systems, I am now looking around for suitable tools.