IRIS-Solutions-Team / IRIS-Toolbox

[IrisToolbox] for Macroeconomic Modeling
Other
90 stars 41 forks source link

mtimes (*) operator for databank doesn't accept array of string #346

Open tosapola opened 1 year ago

tosapola commented 1 year ago

Hi,

I thought this should be OK.

d * ["ygap","pi"]

but Matlab says: Operator '*' is not supported for operands of type 'string'.

Best, Tos

jaromir-benes commented 1 year ago

Matlab will not allow overriding operators for built-in classes in the near future, so this kind of syntax is discouraged.

Use databank.copy(d, sourceNames=["ygap", "pi"]); instead.

Best Jaromir

On Thu, Oct 20, 2022 at 2:14 PM tosapola @.***> wrote:

Hi,

I thought this should be OK.

d * ["ygap","pi"]

but Matlab says: Operator '*' is not supported for operands of type 'string'.

Best, Tos

— Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKTCBPRERTA5JTUL7O3WEFASFANCNFSM6AAAAAARKEQ5JE . You are receiving this because you are subscribed to this thread.Message ID: @.***>