IRIS-Solutions-Team / IRIS-Toolbox

[IrisToolbox] for Macroeconomic Modeling
Other
92 stars 42 forks source link

Bug: subsasgn for a model object doesn't work #274

Closed mariusmjp closed 3 years ago

mariusmjp commented 3 years ago

Hi Jaromir,

The subsagn of model doesn't work anymore as mentionned in the doc (model/subsagn) . Do you think is it possible to fix the bug?

Setup:

Function: model/subsasgn

% ## Example ## % % Expand the number of parameter variants in a model object that has % initially just one parameter variant: % % m(1:10) = m;

bug_subsasgn_model

jaromir-benes commented 3 years ago

Hi - the parenthesis based syntax for this was unfortunately causing some problems so I have removed it in the end. Instead, please use the following command

m = alter(m, 10);

That is safe to work.

Best, Jaromir

On Thu, Oct 8, 2020 at 3:58 PM mariusmjp notifications@github.com wrote:

Hi Jaromir,

The subsagn of model doesn't work anymore as mentionned in the doc (model/subsagn) . Do you think is it possible to fix the bug?

Setup:

  • IRIS 2020-10-07 release
  • MATLAB R2020a

Function: model/subsasgn

% ## Example ## % % Expand the number of parameter variants in a model object that has % initially just one parameter variant: % % m(1:10) = m;

[image: bug_subsasgn_model] https://user-images.githubusercontent.com/22647406/95468626-b5f79c00-094c-11eb-8671-6d56011cbe39.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKUD2VXIUBTOA7W5UGDSJXAQLANCNFSM4SIZNGUA .