[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assign class properties dynamical in constructor

From: deadball
Subject: Assign class properties dynamical in constructor
Date: Thu, 24 Sep 2015 12:38:00 +0200

Hi guys.

Is it possible  to assign propierties (public) of a classdef class (Octave 4) via varargs?

Imagine I've got a class with many settings controlled by public class properties. Each one has default settings, but I want to mass assign arbitrary settings using the constructor of the class via name-property pairs instead of either assign fixed parameters (no varargs) via constructor or call the set function for the properties a lot of times.

Matlab seems to have a "setProperties" function, see

Thank you and best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]