Could somebody please help me with Object-Oriented Programming in MATLAB?
3 views (last 30 days)
I am working on a script that call a "classdef" function and I need to have access to a value in this "classdef". Could sombody please tell me how I can do that? Any tutorial/good references to help me to learn/underestand this class definition would be appreciated too.
Here is one classdef example from MATLAB
classdef helperBLEChannelClassification < ble.internal.ConfigBase
function classifyChannels(obj, connectionConfig)
per = .....
% SL: Snipped the rest
[SL: Please do not post the full text of MathWorks functions or classes.]
In the main script (link to the example ) this helper function is called as
channelClassification = helperBLEChannelClassification(...)% With the desired inputs
However, I'd like to get the "per" value in the "function classifyChannels(obj, connectionConfig)" as an output whenever I call this "channelClassification" function. Any idea?
Many many thanks in advance